Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions lib/app/models/task_attribute.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/// Task attributes shown on the detail page, in display order.
///
/// [name] is the Taskwarrior field name, used both as the on-screen label and
/// as the key passed to `Modify.set`.
enum TaskAttribute {
description,
status,
entry,
modified,
start,
end,
due,
wait,
until,
priority,
project,
tags,
urgency;

/// Attributes that are only ever displayed, never edited.
bool get isDisplayOnly =>
this == TaskAttribute.entry ||
this == TaskAttribute.modified ||
this == TaskAttribute.urgency;
}
Loading
Loading