PhoenixChannelEvent class Null safety

Encapsulates constants used in the protocol over PhoenixChannel.

Inheritance

Constructors

PhoenixChannelEvent(String value)
Instantiates a PhoenixChannelEvent from one of the values used in the wire protocol.
factory
PhoenixChannelEvent.custom(dynamic name)
A custom push event. [...]
factory
PhoenixChannelEvent.replyFor(String ref)
A reply event name for a given push ref value.
factory

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
isReply bool
Whether the event name is an 'reply' event
read-only
props List<Object>
The list of properties that will be used to determine whether two instances are equal.
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props. [...]
read-only, inherited
value String
The string value for a channel event.
final

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

Static Properties

close PhoenixChannelEvent
The constant close event
read / write
error PhoenixChannelEvent
The constant error event
read / write
heartbeat PhoenixChannelEvent
The constant heartbeat event
read / write
join PhoenixChannelEvent
The constant join event
read / write
leave PhoenixChannelEvent
The constant leave event
read / write
reply PhoenixChannelEvent
The constant reply event
read / write
statuses Set<PhoenixChannelEvent>
The constant set of possible internal channel event names.
read / write