ActionCatalog class final
The step_up value of every action of docs/spec/actions.yaml (05 2.4).
Values are the strings true, false, fresh (the terminal's fresh step-up, 08 6.3) and
conditional (05 2.4 defines when it applies).
Example:
final catalog = ActionCatalog.load();
catalog.stepUp('user.disable'); // 'true'
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
stepUp(
String action) → String -
The
step_upvalue ofaction; throws an ArgumentError for an unknown action. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
embedded(
) → ActionCatalog -
The copy of
docs/spec/actions.yamlcompiled into the fake (contract_documents.g.dart, written bymake contract-documents;make codegen-checkkeeps it equal to the file, docs/DECISIONS.md D-M4-26-9). -
load(
{Directory? from}) → ActionCatalog -
Loads
docs/spec/actions.yamlof the repository that holdsfrom(default: the working directory), see read; read once per isolate. -
read(
{Directory? from}) → ActionCatalog -
Reads
docs/spec/actions.yamlof the repository that holdsfrom(default: the working directory), walking up to the folder that has it. Without such a folder (an app under test in the macOS app sandbox, which cannot read the repository) it uses embedded.