ApiResponse<T> class

every request will wrap its response with this contains api status, body data, and error message

Constructors

ApiResponse.completed({T? data, dynamic jsonMap, int? statusCode, String? message})
ApiResponse.error({String? message, int? statusCode, T? data})
ApiResponse.loading()

Properties

data ↔ T?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
jsonMap ↔ dynamic
getter/setter pair
message String?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status ApiStatus
getter/setter pair
statusCode int?
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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