NetworkResult class
Network Result Class Expected Value: { status:done data:value }
Constructors
- NetworkResult(String? _rawData, HttpClientResponse? _response)
- NetworkResult.build(String? rawData, HttpClientResponse response)
-
factory
- NetworkResult.fromFaker(String? rawData)
-
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
-
getData(
) → Map< String, dynamic> - Returns Network Result Data
-
getResponse(
) → HttpClientResponse -
getStatus(
) → String - Returns Network Result Status
-
hasData(
) → bool - Network Result Has Data Body
-
hasError(
) → bool - Network Result Has Errors?
-
hasResponse(
) → bool -
isDone(
) → bool - Network Result Is Safe?
-
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