ApiRequest class
Constructors
-
ApiRequest({required BuildContext context, required ApiCallBackListener apiCallBackListener, required String httpType, required String url, required String apiAction, Map<
String, String> ? headers, Map<String, String> ? body, Encoding? encoding, bool? isMultiPart, Color? progressBarColors, bool? showLoader, Map<String, File> ? mapOfFilesAndKey, Function? logoutFunction, String? apiTimeOutMsg, String? errorMessage})
Properties
- apiAction ↔ String
-
getter/setter pair
- apiCallBackListener ↔ ApiCallBackListener
-
getter/setter pair
- apiTimeOutMsg ↔ String?
-
getter/setter pair
-
body
↔ Map<
String, String> ? -
getter/setter pair
- connectionTimeout ↔ Duration
-
getter/setter pair
- context ↔ BuildContext
-
getter/setter pair
- encoding ↔ Encoding?
-
getter/setter pair
- errorMessage ↔ String?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
↔ Map<
String, String> ? -
getter/setter pair
- httpType ↔ String
-
getter/setter pair
- isMultiPart ↔ bool?
-
getter/setter pair
- jsonDecoder ↔ JsonDecoder
-
getter/setter pair
-
jsonResult
↔ Map<
String, dynamic> ? -
getter/setter pair
- logoutFunction ↔ Function?
-
getter/setter pair
-
mapOfFilesAndKey
↔ Map<
String, File> ? -
getter/setter pair
- progressBarColors ↔ Color?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showLoader ↔ bool?
-
getter/setter pair
- url ↔ String
-
getter/setter pair
Methods
-
apiTimeOut(
) → dynamic -
getAPIMultiRequest(
String url, {Map< String, String> ? headers, dynamic body, dynamic encoding, Map<String, File> ? mapOfFilesAndKey}) → Future -
getAPIRequest(
String url, {Map< String, String> ? headers, dynamic body, dynamic encoding}) → dynamic -
httpCatch(
dynamic onError) → dynamic -
httpResponse(
Response response) → FutureOr -
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