BaseChannel class Null safety

Represents base channel

This class contains properties and methods for both GroupChannel and OpenChannel. Note that this is base class for two offical types - group and open - so you won't have any given channel that only derives from this class.

Implemented types
Available Extensions


BaseChannel({required String channelUrl, User? creator, int? createdAt, String? name, String? coverUrl, String? data, String? customType, bool isFrozen = false, bool isEphemeral = false, bool fromCache = false, bool dirty = false})
WARNING: Do not use default constructor to initialize manually


channelType ChannelType
Channel type for this channel
channelUrl String
This channel url
read / write
coverUrl String?
cover image URL for this channel
read / write
createdAt int?
timestamp when this channel is created
read / write
creator User?
User who creates this channel
read / write
customType String?
custom type for this channel
read / write
data String?
custom data for this channel
read / write
dirty bool
@JsonKey(ignore: true), read / write, override
fromCache bool
local usage
@JsonKey(ignore: true), read / write
hashCode int
The hash code for this object. [...]
read-only, override
isEphemeral bool
True if this channel is ephemeral
@JsonKey(defaultValue: false), read / write
isFrozen bool
Ture if this channel is frozen
@JsonKey(defaultValue: false, name: 'freeze'), read / write
key String
read-only, override
name String?
name for this channel
read / write
primaryKey String
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


copyWith(dynamic others) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toString() String
A string representation of this object. [...]


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

Static Methods

getBaseChannel(ChannelType type, String channelUrl) Future<BaseChannel>
Returns channel with given type and channelUrl
refreshChannel(ChannelType channelType, String channelUrl) Future<BaseChannel>
Refreshes this channel instance