todone_lib 1.0.1
todone_lib: ^1.0.1 copied to clipboard
A library made to parse and write tasks in the ToDone open format.
Accesing tasks #
You can access a particular task by iterating in any way the list.
The tasks object includes the following fields:
Status status: The status is taken from an enum that is eitherdoneorundoneDateTime? doneDateString priority: By default an empty StringDateTime? creationDateSet<String> tags: By default and empty SetDateTime? dueDateString title: By default an empty String
Creating a task #
The library includes a constructor that creates a Task object.
By default, when creating a Task object with only a title it's created with the undone status.
Task example1 = Task();
Task example2 = Task('This is a title');
Task example3 = Task('This is a title', Status.done);