BaseChannel class
Objects representing a channel.
Constructors
Properties
- channelType → ChannelType
-
ChannelType
no setter
- channelUrl ↔ String
-
The unique channel URL.
getter/setter pair
- chat ↔ Chat
-
getter/setter pair
- coverUrl ↔ String
-
The cover image URL.
getter/setter pair
- createdAt ↔ int?
-
The creation time of the channel.
getter/setter pair
- customType ↔ String
-
The custom type of the channel.
getter/setter pair
- data ↔ String
-
The channel data.
getter/setter pair
- dirty ↔ bool
-
getter/setter pair
- fromCache ↔ bool
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- isEphemeral ↔ bool
-
Whether the channel is ephemeral.
getter/setter pair
- isFrozen ↔ bool
-
Whether the channel is frozen.
getter/setter pair
- key → String
-
no setter
- name ↔ String
-
The topic or name of the channel.
getter/setter pair
- primaryKey → String
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
checkUnsupportedAction(
) → void -
copyWith(
dynamic other) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
serialize(
) → Uint8List -
set(
Chat chat) → void -
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
buildFromSerializedData(
Uint8List data) → BaseChannel? -
getBaseChannel(
ChannelType channelType, String channelUrl, {Chat? chat}) → Future< BaseChannel> -
refreshChannel(
ChannelType channelType, String channelUrl, {Chat? chat}) → Future< BaseChannel>