TaskRecord class final
Record containing task, task status and task progress.
TaskRecord represents the state of the task as recorded in persistent
storage if trackTasks
has been called to activate this.
Constructors
- TaskRecord(Task task, TaskStatus status, double progress, int expectedFileSize, [TaskException? exception])
-
TaskRecord.fromJson(Map<
String, dynamic> json) -
Create TaskRecord from
json
Properties
- exception → TaskException?
-
final
- expectedFileSize → int
-
final
- group → String
-
Returns the group collection this record is stored under, which is
the task's Task.group
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- progress → double
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → TaskStatus
-
final
- task → Task
-
final
- taskId → String
-
Returns the record id, which is the task's Task.taskId
no setter
Methods
-
copyWith(
{Task? task, TaskStatus? status, double? progress, int? expectedFileSize}) → TaskRecord - Copy with optional replacements. exception is always copied
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Returns JSON map representation of this TaskRecord
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override