ApiRequest<ResponseType, InnerType> class

Constructors

ApiRequest({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})
ApiRequest.dummy()
factory

Properties

baseUrl String
final
body Map<String, dynamic>?
final
build ApiRequest<ResponseType, InnerType>
no setter
dataKey String
final
error ErrorDescription?
final
extra List<Extra>?
final
hashCode int
The hash code for this object.
no setterinherited
hasPagination bool
final
headers Map<String, String>
final
interceptors List<ApiInterceptor>
final
isMultipart bool
final
method String?
final
nestedKey String?
final
path String
final
query Map<String, dynamic>
final
requestId String
an ID used to track individual requests
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeout int
final
uri Uri
no setter

Methods

copyWith({String? method, String? path, String? dataKey, String? baseUrl, bool? hasPagination, Pagination? pagination, List<Extra>? extra, int? timeout, bool? isMultipart, Map<String, dynamic>? body, Map<String, String>? headers, List<ApiInterceptor>? interceptors, ErrorDescription? error, String? nestedKey, Map<String, dynamic>? query}) ApiRequest<ResponseType, InnerType>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited