Task class
Task.
- Annotations
-
- @freezed
Constructors
-
Task({@JsonKey(name: 'custom_color_index') int? customColorIndex, @JsonKey(name: 'description') String? description, @JsonKey(name: 'tags') List<
String> ? tags, @JsonKey(name: 'section') String? sectionUid, @JsonKey(name: 'observers') List<String> ? observers, @JsonKey(name: 'items') List<String> ? items, @JsonKey(name: 'assignee') String? assignee, @JsonKey(name: 'deadline') @DateTimeConverter() DateTime? deadline, @Default(false) @JsonKey(name: 'public') bool? isPublic, @JsonKey(name: 'remind_at') @DateTimeConverter() DateTime? remindAt, @JsonKey(name: 'task_status') String? taskStatus, @JsonKey(name: 'importance') int? importance, @JsonKey(name: 'urgency') int? urgency, @JsonKey(name: 'complexity') int? complexity, @JsonKey(name: 'spent_time') int? spentTime, @JsonKey(name: 'linked_messages') List<String> ? linkedMessages, @JsonKey(name: 'uploads') List<String> ? uploads}) -
constfactory
-
Task.fromJson(Map<
String, dynamic> json) -
factory
Properties
- assignee → String?
-
User who was assigned the task.
no setterinherited
- complexity → int?
-
Task complexity.
no setterinherited
-
copyWith
→ $TaskCopyWith<
Task> -
no setterinherited
- customColorIndex → int?
-
Custom task color.
no setterinherited
- deadline → DateTime?
-
Deadline time, if any.
no setterinherited
- description → String?
-
Task description.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- importance → int?
-
Task importance.
no setterinherited
- isPublic → bool?
-
Is task or group public for non-guests.
no setterinherited
-
items
→ List<
String> ? -
Items of the task.
no setterinherited
-
linkedMessages
→ List<
String> ? -
Linked messages.
no setterinherited
-
observers
→ List<
String> ? -
User who follow the task.
no setterinherited
- remindAt → DateTime?
-
Fire a reminder at this time.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sectionUid → String?
-
Task section UID.
no setterinherited
- spentTime → int?
-
Time spent.
no setterinherited
-
Task tags.
no setterinherited
- taskStatus → String?
-
Task status.
no setterinherited
-
uploads
→ List<
String> ? -
Task uploads.
no setterinherited
- urgency → int?
-
Task urgency.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited