HttpResponse class Null safety
http library response object
Constructors
- HttpResponse({required bool success, dynamic data, dynamic error})
Properties
- data ↔ dynamic
-
The data for response.
read / write
- error ↔ dynamic
-
If the request failed what is the error.
read / write
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- success ↔ bool
-
The success status of the response.
read / write
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited