DesiredState class

The target configuration the Hub wants a node to reach: an ordered list of formula steps (typically expanded from one or more presets).

Annotations
  • @immutable

Constructors

DesiredState(List<PresetStep> steps)
Creates a desired state.
const
DesiredState.fromPresets(Iterable<Preset> presets)
Builds a desired state from presets (steps concatenated in order).
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
steps List<PresetStep>
The steps that, when all converged, satisfy the desired state.
final

Methods

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

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromJson(Map<String, dynamic> json) DesiredState
Decodes from JSON.

Constants

empty → const DesiredState
An empty desired state.