Channel constructor

Channel({
  1. bool? autoTranslationEnabled,
  2. required String autoTranslationLanguage,
  3. required String cid,
  4. ChannelConfig? config,
  5. ChannelConfig? configOverrides,
  6. int? cooldown,
  7. required DateTime createdAt,
  8. UserObject? createdBy,
  9. Map<String, Object> custom = const {},
  10. DateTime? deletedAt,
  11. required bool disabled,
  12. required bool frozen,
  13. required String id,
  14. List<ChannelMember> invites = const [],
  15. DateTime? lastMessageAt,
  16. int? memberCount,
  17. List<ChannelMember> members = const [],
  18. String? team,
  19. UserObject? truncatedBy,
  20. required String type,
  21. 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,
});