CubePresets class final
The built-in preset catalog and its manifest generator.
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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
all
→ List<
CubePreset> -
Every preset: 3 levels × 2 app axes.
no setter
Static Methods
-
byId(
String id) → CubePreset? -
Looks a preset up by id; accepts the bare level (
L2,l2) as the conservativecoreaxis. Null whenidis not a preset id. -
manifestYaml(
CubePreset preset, String cwd) → String -
Generates the preset's manifest yaml rooted at
cwd(the sandbox workspace). Parsed by the strict CubeSpec parser — never hand-fed into the runtime. -
maybeSpec(
{required String name, required String cwd}) → CubeSpec? -
Resolves a preset id to a parsed CubeSpec rooted at
cwd; null whennameis not a preset id (the resolver treats that as a file lookup).
Constants
-
appAxes
→ const List<
String> - The application axes.
-
coreToolAllow
→ const List<
String> -
The basic read/navigate command set of the
coreapp axis (plus read-only git subcommands). -
l2NetworkHosts
→ const List<
String> - The dev hosts L2's network allows on 443.
-
levels
→ const List<
String> - The protection levels, strongest first.