EnumListParam<T extends Enum> class
An enum list parameter.
Provides type-safe list parameters using Dart enums. Values are stored as strings (enum names) in the environment variable and parsed back to enum values at runtime.
Example:
enum Region { usCentral1, europeWest1, asiaNortheast1 }
final regions = defineEnumList(Region.values);
// At runtime
final selectedRegions = regions.value(); // Returns List<Region>
- Inheritance
-
- Object
- Expression<
List< T> > - Param<
List< T> > - EnumListParam
Constructors
-
EnumListParam(String name, List<
T> enumValues, ParamOptions<List< ? options)T> > -
const
Properties
-
enumValues
→ List<
T> -
All possible values of the enum type.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
The environment variable name for this parameter.
finalinherited
-
options
→ ParamOptions<
List< ?T> > -
Configuration options for this parameter.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
equals(
Expression< List< other) → Equals<T> >List< T> > -
Creates an equality comparison expression.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notEquals(
Expression< List< other) → NotEquals<T> >List< T> > -
Creates an inequality comparison expression.
inherited
-
runtimeValue(
) → List< T> -
Evaluates this expression to get its runtime value.
override
-
toCEL(
) → String -
Converts this expression to CEL (Common Expression Language) format.
inherited
-
toJSON(
) → String -
Converts this expression to JSON for serialization.
inherited
-
toSpec(
) → WireParamSpec< List< T> > -
Converts this parameter to its wire specification for deployment.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
value(
) → List< T> -
Returns the parameter value at runtime.
inherited
-
when<
R extends Object> ({required Expression< R> then, required Expression<R> otherwise}) → If<R> -
Creates a conditional expression (ternary operator).
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited