Community class final

Represents a community consisting of supergroup chats, channel chats and chats with bots

Inheritance

Constructors

Community({required int id, required bool haveAccess, required String name, ChatPhotoInfo? photo, required int date, required CommunityMemberStatus status, required CommunityPermissions permissions, required bool areChatsCollapsed})
Represents a community consisting of supergroup chats, channel chats and chats with bots
const
Community.fromJson(Map<String, dynamic> json)
Parses a Community from TDLib JSON.
factory

Properties

areChatsCollapsed → bool
True, if all chats of the community are collapsed into one entry in the chat list
final
clientId → int?
Identifier of the TDLib client that sent this object, when known.
no setterinherited
date → int
Point in time (Unix timestamp) when the community was joined, or the point in time when the community was created, in case the user is not a member of any chat in the community
final
extra → dynamic
"@extra" of the request this object answers; null for updates.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
haveAccess → bool
If false, the community is inaccessible, and the only information known about the community is inside this class. Identifier of the community can't be passed to any method
final
id → int
Community identifier
final
name → String
Community name
final
permissions → CommunityPermissions
Actions that non-administrator community members are allowed to take in the community
final
photo → ChatPhotoInfo?
Community photo; may be null
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → CommunityMemberStatus
Status of the current user in the community
final

Methods

copyWith({int? id, bool? haveAccess, String? name, ChatPhotoInfo? photo()?, int? date, CommunityMemberStatus? status, CommunityPermissions? permissions, bool? areChatsCollapsed}) → Community
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.
getConstructor() → String
TDLib type name, e.g. updateNewMessage.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this object to TDLib JSON.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

CONSTRUCTOR → const String
TDLib type name.