Channel constructor
Channel({
- bool? autoTranslationEnabled,
- required String autoTranslationLanguage,
- required String cid,
- ChannelConfig? config,
- ChannelConfig? configOverrides,
- int? cooldown,
- required DateTime createdAt,
- UserObject? createdBy,
- Map<
String, Object> custom = const {}, - DateTime? deletedAt,
- required bool disabled,
- required bool frozen,
- required String id,
- List<
ChannelMember> invites = const [], - DateTime? lastMessageAt,
- int? memberCount,
- List<
ChannelMember> members = const [], - String? team,
- UserObject? truncatedBy,
- required String type,
- required DateTime updatedAt,
Returns a new Channel instance.
Implementation
Channel({
this.autoTranslationEnabled,
required this.autoTranslationLanguage,
required this.cid,
this.config,
this.configOverrides,
this.cooldown,
required this.createdAt,
this.createdBy,
this.custom = const {},
this.deletedAt,
required this.disabled,
required this.frozen,
required this.id,
this.invites = const [],
this.lastMessageAt,
this.memberCount,
this.members = const [],
this.team,
this.truncatedBy,
required this.type,
required this.updatedAt,
});