SnapdTask class

Information about a task in a SnapdChange.

Annotations
  • @immutable
  • @JsonSerializable()

Constructors

SnapdTask({String id = '', String kind = '', String summary = '', String status = '', SnapdTaskProgress progress = const SnapdTaskProgress(), DateTime? spawnTime, DateTime? readyTime})
SnapdTask.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
id String
The ID of this task.
final
kind String
The kind of task, e.g. 'download-snap'install-snap'.
final
progress SnapdTaskProgress
Progress of this task.
final
readyTime DateTime?
The time this task completed.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spawnTime DateTime
The time this task started.
final
status String
Status of the task, e.g. 'Doing'.
final
summary String
Short description of the task. e.g. ''Download snap "moon-buggy" (12) from channel "stable"'
final

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