Task class

Constructors

Task({required String id, String? provider, String? accountId, String? ownerUserId, required String title, String? description, String? status, required bool completed, DateTime? dueDate, required TaskPriorityEnum priority, List<String> labels = const [], List<String> tags = const [], String? assigneeId, required DateTime createdAt, required DateTime updatedAt, DateTime? completedAt, String? parentTaskId, Map<String, Object> metadata = const {}, String? type, String? sourcePlatform, String? sourceId})
Returns a new Task instance.

Properties

accountId ↔ String?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
assigneeId ↔ String?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
completed ↔ bool
getter/setter pair
completedAt ↔ DateTime?
getter/setter pair
createdAt ↔ DateTime
getter/setter pair
description ↔ String?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
dueDate ↔ DateTime?
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String
getter/setter pair
labels ↔ List<String>
getter/setter pair
metadata ↔ Map<String, Object>
Provider-specific extras.
getter/setter pair
ownerUserId ↔ String?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
parentTaskId ↔ String?
Parent task id when this is a subtask.
getter/setter pair
priority ↔ TaskPriorityEnum
Priority bucket. Canonical values (mapped from a 0–4 integer): none, low, medium, high, urgent.
getter/setter pair
provider ↔ String?
Registered provider id (e.g. native-tasks, linear).
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sourceId ↔ String?
Source artifact id paired with sourcePlatform.
getter/setter pair
sourcePlatform ↔ String?
When this task was auto-generated from another artifact (e.g. a calendar event reminder), the platform id of that artifact.
getter/setter pair
status ↔ String?
Free-form status string. Canonical values across most providers: todo, in_progress, in_review, backlog, done. The platform falls back to done when completed is true and status is empty, else todo.
getter/setter pair
tags ↔ List<String>
getter/setter pair
title ↔ String
getter/setter pair
type ↔ String?
Discriminator. Canonical values: todo, reminder, issue. Empty defaults to todo.
getter/setter pair
updatedAt ↔ DateTime
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic value) → Task?
Returns a new Task instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<Task>
mapFromJson(dynamic json) → Map<String, Task>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<Task>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.