BaseChannel class

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
Implementers
Available extensions

Constructors

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

Properties

channelType ChannelType
Channel type for this channel
no setter
channelUrl String
This channel url
getter/setter pair
coverUrl String?
cover image URL for this channel
getter/setter pair
createdAt int?
timestamp when this channel is created
getter/setter pair
creator User?
User who creates this channel
getter/setter pair
customType String?
custom type for this channel
getter/setter pair
data String?
custom data for this channel
getter/setter pair
dirty bool
getter/setter pairoverride
fromCache bool
local usage
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
isEphemeral bool
True if this channel is ephemeral
getter/setter pair
isFrozen bool
Ture if this channel is frozen
getter/setter pair
key String
no setteroverride
name String?
name for this channel
getter/setter pair
primaryKey String
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith(dynamic others) → void
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override

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