Wrapper class for a channel. Provides easy access to various channel information stored in a packet.

Constants

nullChannelID → String

null

Static Properties

excludedFields → List<String>

read-only

Constructors

Channel.assemble(Map<String, String> _fields, Map<String, dynamic> _variables)

Assemble a channel from fields and variables.

Channel.fromPacket(Packet packet)

Extracts the relevant information from the packet and stores it in an internal map.

Properties

asMap → Map

Returns a map representation of the channel.

read-only
fields → Map<String, String>

read-only
hashCode → int

Hashcode follows the convention from the == operator.

read-only
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited
state → String

read-only
UUID → String

read-only
uuid → String

read-only
variables → Map<String, dynamic>

read-only

Operators

operator ==(Object other) → bool

Two channel is equivalent, if their UUID's are the same - regardless of state.

Methods

channelName() → String

Gets the channel's name.

isInbound() → bool

Determine if a channel is inbound.

isInternal() → bool

Determine if a channel is internal.

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
toMap() → Map

Converts the channel into a map.

toString() → String

Returns a string representation of this object.

inherited