FeedChannel class

Represents a feed channel. @since 4.0.3

Inheritance
Available Extensions

Constructors

FeedChannel({required GroupChannel groupChannel, NotificationMessage? lastMessage, bool? isTemplateLabelEnabled, bool? isCategoryFilterEnabled, List<NotificationCategory>? notificationCategories})
FeedChannel.fromJson(Map<String, dynamic> json)
factory
FeedChannel.fromJsonWithChat(Chat chat, Map<String, dynamic> json)
factory

Properties

channelType ChannelType
ChannelType
no setterinherited
channelUrl String
The unique channel URL. @since 4.0.3
getter/setter pairoverride
chat ↔ Chat
getter/setter pairinherited
coverUrl String
The cover image URL.
getter/setter pairinherited
createdAt int?
The creation time of the channel. @since 4.0.3
getter/setter pairoverride
customType String
The custom type of the channel.
getter/setter pairinherited
data String
The channel data.
getter/setter pairinherited
dirty bool
getter/setter pairinherited
fromCache bool
getter/setter pairinherited
groupChannel GroupChannel
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
isCategoryFilterEnabled bool?
isCategoryFilterEnabled @since 4.0.6
getter/setter pair
isEphemeral bool
Whether the channel is ephemeral.
getter/setter pairinherited
isFrozen bool
Whether the channel is frozen.
getter/setter pairinherited
isTemplateLabelEnabled bool?
isTemplateLabelEnabled @since 4.0.6
getter/setter pair
key String
no setterinherited
lastMessage NotificationMessage?
The last message of the channel. @since 4.1.0
getter/setter pair
memberCount int
The total member count for this channel. @since 4.0.3
no setter
members List<Member>
Member list for this channel. @since 4.0.3
no setter
myLastRead int
Current user's last read receipt timestamp in channel. @since 4.0.3
no setter
myMemberState MemberState
My member state. @since 4.0.3
no setter
name String
The topic or name of the channel. @since 4.0.3
getter/setter pairoverride
notificationCategories List<NotificationCategory>
notificationCategories @since 4.0.6
getter/setter pair
primaryKey String
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
unreadMessageCount int
The unread message count for this channel for the current User. @since 4.0.3
no setter

Methods

checkUnsupportedAction() → void
inherited
copyWith(dynamic other) → void
override
logCustom(List<NotificationMessage> messages, String topic) Future<bool>
logCustom @since 4.1.0
logImpression(List<NotificationMessage> messages) Future<bool>
logImpression @since 4.1.0
markAsClicked(List<NotificationMessage> messages) Future<bool>
markAsClicked @since 4.1.2
markAsRead({List<NotificationMessage>? messages}) Future<void>
Sends mark as read to this channel. If messages is not null, the messages will be marked as read to this channel. @since 4.1.0
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize() Uint8List
inherited
set(Chat chat) → void
inherited
shouldUpdateLastMessage(NotificationMessage message) bool
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

getChannel(String channelUrl, {Chat? chat}) Future<FeedChannel>
refresh(String channelUrl, {Chat? chat}) Future<FeedChannel>
Refreshes all the data of this channel. @since 4.0.3