CloudTask class

A model class representing a task stored in the cloud.

This class contains the task's essential details such as its unique identifier, owner, title, description, completion status, creation date, completion date and group id.

Constructors

CloudTask({required String documentId, required String ownerUserId, required String title, String? description, required bool isCompleted, DateTime? dueDate, required DateTime creationDate, DateTime? completionDateTime, String? groupId, List<String> assignedUserIds = const []})
const
CloudTask.fromDocument(dynamic doc)
Factory constructor to create a CloudTask from a Firestore document snapshot.
factory
CloudTask.fromSnapshot(dynamic snapshot)
Factory constructor to create a CloudTask from a Firestore snapshot.

Properties

assignedUserIds List<String>
final
completionDateTime DateTime?
final
creationDate DateTime
final
description String?
final
documentId String
final
dueDate DateTime?
final
groupId String?
final
hashCode int
The hash code for this object.
no setterinherited
isCompleted bool
final
ownerUserId 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