ResponseModel<T, E extends INetworkModel<E>? > class
Response model for network response general
- Inheritance
-
- Object
- IResponseModel<
T?, E> - ResponseModel
Constructors
-
ResponseModel({T? data, IErrorModel<
E> ? error}) - T: success model E: error model
Properties
- data ↔ T?
-
data is a getter method that returns the data received from the server.
getter/setter pairinherited
-
error
↔ IErrorModel<
E> ? -
error is a getter method that returns any errors that occurred while
getter/setter pairinherited
- 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