Group constructor

Group({
  1. required String guid,
  2. String owner = '',
  3. required String name,
  4. String? icon,
  5. String? description,
  6. bool hasJoined = false,
  7. int membersCount = 0,
  8. DateTime? createdAt,
  9. DateTime? joinedAt,
  10. DateTime? updatedAt,
  11. Map<String, dynamic>? metadata,
  12. List<String> tags = const [],
  13. required String type,
  14. String? scope,
  15. String? password,
  16. bool? isBannedFromGroup,
})

Constructs a new Group instance.

Requires guid, name, and type to be specified. Other properties are optional.

Implementation

Group(
    {required this.guid,
    this.owner = '',
    required this.name,
    this.icon,
    this.description,
    this.hasJoined = false,
    this.membersCount = 0,
    this.createdAt,
    this.joinedAt,
    this.updatedAt,
    this.metadata,
    this.tags = const [],
    required this.type,
    this.scope,
    this.password,
    this.isBannedFromGroup});