EnumArg<T extends Enum> class

Inheritance

Constructors

EnumArg(T value, {String? name, required List<T> values, LabelBuilder<T>? labelBuilder = enumLabelBuilder})
const

Properties

$name String?
finalinherited
$value → T?
finalinherited
fields List<Field>
no setterinherited
groupName String
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
labelBuilder LabelBuilder<T>?
finalinherited
name String
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → T
no setterinherited
values List<T>
finalinherited

Methods

buildFields(BuildContext context) Widget
Converts the fields into a Widget that will be rendered in the settings side panel.
inherited
init({required String name}) EnumArg<T>
Creates a copy of this using the provided name for late initialization. If $name was already set, it should have precedence over name.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve(BuildContext context) → T
inherited
slugify(String name) String
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited
valueFromQueryGroup(Map<String, String> group) → T
Converts a query group to a value of type T.
inherited
valueOf<TField>(String name, Map<String, String> group) → TField?
Decodes the value of the Field with name from the query group using the FieldCodec.toValue from Field.codec.
inherited

Operators

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

Static Methods

enumLabelBuilder(Enum value) String