TaskService class
PostService class provides functions in the context of a Task.
Services include:
getTasksForEvent
: to get the task for the event.getTasksByUser
: to get the task added by the user.editTask
: to edit the task added by the user.createTask
: to create the task for the event.deleteTask
: to delete the task added by the user.
Constructors
TaskService ()
Properties
callbackNotifyListeners ↔ VoidCallback
read / write
hashCode → int
The hash code for this object.
read-onlyinherited
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited
tasks → List<Task>
read-only
Methods
createTask({required String title, required String description, required String deadline, required String eventId}) Future<bool>
This function is used to create a new task for the event.
deleteTask(String taskId, String creatorId) Future<void>
This function is used to delete a task.
editTask({required String title, required String description, required String deadline, required String taskId}) Future<bool>
This function is used to edit the task created by the user.
getTasksByUser() Future<void>
This function is used to fetch and return all tasks added by the current user.
getTasksForEvent(String eventId) Future<void>
This function is used to get all the tasks for the event.
noSuchMethod(Invocation invocation) dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
Operators
operator ==(Object other) bool
The equality operator.
inherited