FlavorContext class
Resolves environment-aware values in Katana configuration files.
Constructors
-
FlavorContext.resolve({required Map yaml, required Map secrets, required List<
String> arguments}) -
Resolves flavor and environment-aware leaf values.
factory
Properties
- explicit → bool
-
Whether the flavor was explicitly specified on the command line.
final
- flavor → KatanaFlavor
-
Selected environment.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secrets → Map
-
Secret configuration with recognized environment maps resolved.
final
- yaml → Map
-
Configuration with recognized environment maps resolved to scalar values.
final
Methods
-
hasEnvironmentMap(
List< String> path) → bool -
Whether the unresolved YAML value at
pathis a{dev:, prod:}map. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
yamlValue(
List< String> path, {KatanaFlavor? flavor}) → Object? - Reads an unresolved YAML value for a specific environment.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited