PhoenixChannel class Null safety

Constructors

PhoenixChannel(String _topic, Map _params, PhoenixSocket? socket)
To create a channel use PhoenixSocket.channel [...]

Properties

canPush bool
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
isClosed bool
read-only
isErrored bool
read-only
isJoined bool
read-only
isJoining bool
read-only
isLeaving bool
read-only
joinPush PhoenixPush?
read-only
joinRef String?
read-only
params Map?
read-only
rejoinTimer Timer?
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
socket PhoenixSocket?
read / write
timeout int?
read-only
topic String?
read-only

Methods

join() PhoenixPush?
Attempts to join the Phoenix Channel [...]
leave() PhoenixPush?
Leaves the channel [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
off(dynamic event, [dynamic ref]) → void
Removes an event callback
on(String? event, PhoenixMessageCallback callback) int
Adds a callback which will be triggered on receiving an event with matching name
onClose(PhoenixMessageCallback callback) → dynamic
Adds a callback to be triggered on channel close
onError(dynamic callback) → dynamic
Adds a callback to be trigger on channel error
onMessage(dynamic event, dynamic payload, dynamic ref) → dynamic
push({String? event, Map? payload}) PhoenixPush?
Pushes a message to the server
replyEventName(dynamic ref) String?
toString() String
A string representation of this object. [...]
inherited
triggerError() → dynamic

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited