TaskService class
<p>PostService class provides functions in the context of a Task.</p> <p>Services include:</p> <ul> <li><code>getTasksForEvent</code> : to get the task for the event.</li> <li><code>getTasksByUser</code> : to get the task added by the user.</li> <li><code>editTask</code> : to edit the task added by the user.</li> <li><code>createTask</code> : to create the task for the event.</li> <li><code>deleteTask</code> : to delete the task added by the user.</li> </ul>
Constructors
TaskService ()
Properties
callbackNotifyListeners ↔ VoidCallback
<span class="feature">read / write</span>
hashCode → int
The hash code for this object.
<span class="feature">read-only</span><span class="feature">inherited</span>
runtimeType → Type
A representation of the runtime type of the object.
<span class="feature">read-only</span><span class="feature">inherited</span>
tasks → List<Task>
<span class="feature">read-only</span>
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.
<span class="feature">inherited</span>
toString() String
A string representation of this object.
<span class="feature">inherited</span>
Operators
operator ==(Object other) bool
The equality operator.
<span class="feature">inherited</span>