ApiResponseVariableUtils class
Helper utility class to easily convert ApiResponseVariable
to a map and
update different statuses.
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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
error(
String url, Object? error, {Object? data, Map< String, String> ? headers}) → Map -
fromResponse(
Response response, {Object? existingData}) → Map -
idle(
String url) → Map -
loading(
String url, {Object? data}) → Map -
success(
String url, Object? data, {int statusCode = 200, Map< String, String> ? headers}) → Map