fillTask method
void fillTask (Task task)
This functions fills the task controller data.
params:
task
:Task
type contain task data.
Implementation
void fillTask(Task task) {
taskTitleTextController.text = task.title;
taskDescriptionTextController.text = task.description ?? '';
if (task.deadline != null) {
taskEndDate =
DateTime.fromMicrosecondsSinceEpoch(int.parse(task.deadline!));
taskEndTime = TimeOfDay.fromDateTime(taskEndDate);
}
}