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
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
read-only
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
read / writeoverride
fromCache bool
local usage
read / write
hashCode int
The hash code for this object.
read-onlyoverride
isEphemeral bool
True if this channel is ephemeral
read / write
isFrozen bool
Ture if this channel is frozen
read / write
key String
read-onlyoverride
name String?
name for this channel
read / write
primaryKey String
read-onlyoverride
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

copyWith(dynamic others) → void
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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