PresetStep class

A reference to a formula within a preset: which formula, which action to drive, and an optional pinned version.

Annotations
  • @immutable

Constructors

PresetStep({required FormulaId formula, FormulaAction action = FormulaAction.install, String? version})
Creates a preset step.
const

Properties

action → FormulaAction
The action to apply (defaults to install, which is idempotent for well-behaved formulas).
final
formula → FormulaId
The formula to run.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
version → String?
The target version, if pinned.
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) → PresetStep
Decodes from JSON.