CommunityChat class

Describes a chat in a community

Inheritance
Available extensions
Annotations
  • @immutable

Constructors

CommunityChat({required int chatId, required bool canViewHistory, required bool isHidden})
const

Properties

canViewHistory → bool
canViewHistory True, if the message history of the chat can be viewed
final
chatId → int
chatId Identifier of the chat in the community
final
hashCode → int
The hash code for this object.
no setteroverride
isHidden → bool
isHidden True, if the chat is hidden in the list of community chats; for community administrators only
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({int? chatId, bool? canViewHistory, bool? isHidden}) → CommunityChat

Available on CommunityChat, provided by the CommunityChatExtensions extension

getConstructor() → String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
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

fromJson(Map<String, dynamic>? json) → CommunityChat?

Constants

constructor → const String