PushResponse class Null safety

Encapsulates the response to a Push.

Inheritance

Constructors

PushResponse({String? status, dynamic response})
Builds a PushResponse from a status and response.
PushResponse.fromMessage(Message message)
Builds a PushResponse from a Map payload. [...]
factory

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
isError bool
Whether the response as a 'error' status.
read-only
isOk bool
Whether the response as a 'ok' status.
read-only
isTimeout bool
Whether the response as a 'error' status.
read-only
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
read-only, override
response → dynamic
Arbitrary JSON content provided by the backend.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
status String?
Status provided by the backend. [...]
final
stringify bool
If set to true, the toString method will be overridden to output this instance's props. [...]
read-only, override

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