ApiHelper class
Constructors
-
ApiHelper.setup(Uri baseUrl, String token, List<
ApiHelperPathItem> paths, {dynamic responseResolverFunc(Map<String, dynamic> ?)?, int timeout = 30000})
Properties
- baseUrl → Uri
-
final
- dio ↔ Dio?
-
getter/setter pair
- dioInstance → Dio?
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
paths
→ List<
ApiHelperPathItem> ? -
no setter
-
responseResolver
↔ (Response Function(Map<
String, dynamic> ?)?) -
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- token → String
-
final
Methods
-
getPathItem(
String pathKey) → ApiHelperPathItem -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
request(
ApiHelperPathItem pathItem) → Future< Response> -
requestWithDataResolver<
T> (ApiHelperPathItem pathItem, {dynamic dataResolver(dynamic)?}) → Future< Response< T> > -
requestWithoutReturnData(
ApiHelperPathItem pathItem) → Future< Response> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited