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