PushResponse class
Encapsulates the response to a Push.
Constructors
- PushResponse({String? status, dynamic response})
-
Builds a PushResponse from a status and response.
const
- PushResponse.fromMessage(Message message)
-
Builds a PushResponse from a Map payload.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- isError → bool
-
Whether the response as a 'error' status.
no setter
- isOk → bool
-
Whether the response as a 'ok' status.
no setter
- isTimeout → bool
-
Whether the response as a 'error' status.
no setter
- response → dynamic
-
Arbitrary JSON content provided by the backend.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → String?
-
Status provided by the backend.
final
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.
override