ApiManager class
ApiManager simplifies the process of network calls.
Constructors
- ApiManager()
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parseUploadError(
Response response, int statusCode) → dynamic -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- apiRegistryConfig ← ApiRegistryConfig
-
Setter
apiRegistryConfigused to set values in private fields.no getter
Static Methods
-
apiRequestObject<
T> ({required BuildContext context, required SuccessCallback onSuccess, required FailureCallback onFailure, String additionalUrlParams = '', Map< String, String> headers = const {'Content-Type' : 'application/json'}, Map<String, dynamic> bodyParams = const {}, Map<String, dynamic> uriParameter = const {}, required String endpoint, required HTTPMethod httpMethod, dynamic successParser(Map<String, dynamic> json)?, bool showLoading = true}) → Future<void>