Support to add request name

This commit is contained in:
Ashita Prasad
2024-12-26 05:14:10 +05:30
parent 0ba5b5cbf0
commit e89118b22d

View File

@ -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!};