FormulaRegistry class

A catalogue of Formulas available on a node, keyed by formula id.

Operators register custom formulas here; the standard factory wires the built-ins (Docker, Dart).

Constructors

FormulaRegistry()
Creates an empty registry.
FormulaRegistry.standard({CommandExecutor executor = const ProcessCommandExecutor()})
Creates a registry pre-populated with the built-in formulas.
factory

Properties

formulas Iterable<Formula>
All registered formulas.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

byId(String id) Formula?
The formula with id, or null.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
register(Formula formula) → void
Registers (or replaces) formula.
toString() String
A string representation of this object.
inherited

Operators

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