mirror of
https://github.com/foss42/apidash.git
synced 2025-06-27 02:51:54 +08:00
Support to add request name
This commit is contained in:
@ -84,10 +84,14 @@ class CollectionStateNotifier
|
|||||||
unsave();
|
unsave();
|
||||||
}
|
}
|
||||||
|
|
||||||
void addRequestModel(HttpRequestModel httpRequestModel) {
|
void addRequestModel(
|
||||||
|
HttpRequestModel httpRequestModel, {
|
||||||
|
String? name,
|
||||||
|
}) {
|
||||||
final id = getNewUuid();
|
final id = getNewUuid();
|
||||||
final newRequestModel = RequestModel(
|
final newRequestModel = RequestModel(
|
||||||
id: id,
|
id: id,
|
||||||
|
name: name ?? "",
|
||||||
httpRequestModel: httpRequestModel,
|
httpRequestModel: httpRequestModel,
|
||||||
);
|
);
|
||||||
var map = {...state!};
|
var map = {...state!};
|
||||||
|
Reference in New Issue
Block a user