Group constructor

Group({
  1. String? id,
  2. required String name,
  3. required String createdBy,
  4. List<String>? members,
  5. bool isPublic = false,
  6. String? publicLinkCode,
  7. Timestamp? createdAt,
  8. bool locationSharingEnabled = true,
})

//////////// ////////////

Implementation

// II.B - Constructor
///////////////
Group({
  this.id,
  required this.name,
  required this.createdBy,
  List<String>? members,
  this.isPublic = false,
  this.publicLinkCode,
  Timestamp? createdAt,
  this.locationSharingEnabled = true,
}) :
  members = members ?? [],
  createdAt = createdAt ?? Timestamp.now();