TaskItem class
Task checklist item.
- Annotations
-
- @freezed
Constructors
- TaskItem({@JsonKey(name: 'uid') String? uid, @JsonKey(name: 'gentime') required int gentime, @JsonKey(name: 'sort_ordering') int? sortOrdering, @JsonKey(name: 'text') required String text, @Default(false) @JsonKey(name: 'checked') bool? checked, @Default(false) @JsonKey(name: 'can_toggle') bool? canToggle, @Default(false) @JsonKey(name: 'can_change') bool? canChange, @JsonKey(name: 'subtask') Subtask? subtask})
-
constfactory
-
TaskItem.fromJson(Map<
String, dynamic> json) -
factory
Properties
- canChange → bool?
-
Can I change this item.
no setterinherited
- canToggle → bool?
-
Can I toggle this item.
no setterinherited
- checked → bool?
-
Item checked.
no setterinherited
-
copyWith
→ $TaskItemCopyWith<
TaskItem> -
no setterinherited
- gentime → int
-
Object version.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sortOrdering → int?
-
Sort ordering.
no setterinherited
- subtask → Subtask?
-
Link to subtask. Optional.
no setterinherited
- text → String
-
Text or "#{OtherTaskNumber}".
no setterinherited
- uid → String?
-
Id.
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