ApiRequest<ResponseType, InnerType> constructor
ApiRequest<ResponseType, InnerType> ({
- String? requestId,
- bool hasPagination = false,
- bool isMultipart = false,
- List<
Extra> ? extra, - Map<
String, String> headers = const {}, - Map<
String, dynamic> query = const {}, - ErrorDescription? error,
- String? nestedKey,
- String? method = ApiMethods.get,
- String dataKey = '',
- List<
ApiInterceptor> interceptors = const [], - String path = '',
- required String baseUrl,
- int timeout = 50,
- Map<
String, dynamic> ? body,
Implementation
ApiRequest(
{String? requestId,
this.hasPagination = false,
this.isMultipart = false,
this.extra,
this.headers = const {},
this.query = const {},
this.error,
this.nestedKey,
this.method = ApiMethods.get,
this.dataKey = '',
this.interceptors = const [],
this.path = '',
required this.baseUrl,
this.timeout = 50,
this.body})
: requestId = requestId ?? UniqueKey().toString();