CloudGroup class

A model class representing a group stored in the cloud.

This class contains the group's essential details such as its unique identifier, owner, title and description.

Constructors

CloudGroup({required String documentId, required String ownerUserId, required String title, String? description, required List<String> participants, required String inviteCode, List<String> adminIds = const []})
const
CloudGroup.fromDocument(dynamic doc)
Factory constructor to create a CloudGroup from a Firestore document snapshot.
factory
CloudGroup.fromSnapshot(dynamic snapshot)
Factory constructor to create a CloudGroup from a Firestore snapshot.

Properties

adminIds → List<String>
final
description → String?
final
documentId → String
final
hashCode → int
The hash code for this object.
no setterinherited
inviteCode → String
final
ownerUserId → String
final
participants → List<String>
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
title → String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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