ProgressView class

Constructors

ProgressView({int? done, String? next, int? percent, int? total})
Returns a new ProgressView instance.

Properties

done ↔ int?
Done counts steps that are FINISHED — done and skipped alike, since a step the org deliberately passed over is not still owed. It therefore rises when somebody skips, which is the intended reading of a checklist.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
next ↔ String?
Next is the id of the step to do next: the first available, unfinished step in authoring order. Empty when the journey is complete, and also empty when every remaining step is blocked by a dependency.
getter/setter pair
percent ↔ int?
Percent is done/total as a whole number 0-100, rounded, so a caller renders a bar without recomputing it. Total zero reads as 0.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
total ↔ int?
Total is how many steps this org's journey holds — the ENABLED steps of the playbook, so it shrinks when an operator disables one and does not match the authored step count.
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) → ProgressView?
Returns a new ProgressView instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<ProgressView>
mapFromJson(dynamic json) → Map<String, ProgressView>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<ProgressView>>

Constants

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