request method
void
request(})
Implementation
void request(
int id, {
String? apiName,
Object? body,
required String method,
required String path,
Map<String, String?>? parameters,
}) {
var request = NetworkRequest(id,
apiName: apiName,
requestBody: body,
httpMethod: method,
path: path,
parameters: parameters ?? {});
var requestList = requests.value..add(request);
if (requestList.length > _maxRequest) {
requestList.removeAt(0);
}
requests.add(requestList);
}