ColorRule class
Set of rules to apply to tasks for coloring.
- Annotations
-
- @freezed
Constructors
-
ColorRule({@JsonKey(name: 'uid') required String uid, @JsonKey(name: 'priority') required int priority, @JsonKey(name: 'description') String? description, @JsonKey(name: 'color_index') required int colorIndex, @Default(false) @JsonKey(name: 'section_enabled') bool? projectEnabled, @JsonKey(name: 'section') String? project, @Default(false) @JsonKey(name: 'tags_enabled') bool? tagsEnabled, @JsonKey(name: 'tags') List<
String> ? tags, @JsonKey(name: 'task_status') String? taskStatus, @Default(false) @JsonKey(name: 'task_importance_enabled') bool? taskImportanceEnabled, @JsonKey(name: 'task_importance') int? taskImportance, @Default(false) @JsonKey(name: 'task_urgency_enabled') bool? taskUrgencyEnabled, @JsonKey(name: 'task_urgency') int? taskUrgency}) -
constfactory
-
ColorRule.fromJson(Map<
String, dynamic> json) -
factory
Properties
- colorIndex → int
-
Color index.
no setterinherited
-
copyWith
→ $ColorRuleCopyWith<
ColorRule> -
no setterinherited
- description → String?
-
Rule description.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- priority → int
-
Rule priority.
no setterinherited
- project → String?
-
Project id if project filter enabled.
no setterinherited
- projectEnabled → bool?
-
Project filter enabled.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
Tag ids if tags filter enabled.
no setterinherited
-
Tags filter enabled.
no setterinherited
- taskImportance → int?
-
Task importance if task importance filter enabled.
no setterinherited
- taskImportanceEnabled → bool?
-
Task importance filter enabled.
no setterinherited
- taskStatus → String?
-
Task status.
no setterinherited
- taskUrgency → int?
-
Task urgency if task urgency filter enabled.
no setterinherited
- taskUrgencyEnabled → bool?
-
Task urgency filter enabled.
no setterinherited
- uid → String
-
Rule 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