FormEnumFieldPicker<TEnum extends Enum> class

Class that defines the picker style for selecting TEnum.

TEnumを選択するためのピッカースタイルを定義するクラス。

Available Extensions

Constructors

FormEnumFieldPicker({TEnum? defaultValue, required List<TEnum> values, String labelBuilder(TEnum? value)?, Color? backgroundColor, Color? color, String confirmText = "Confirm", String cancelText = "Cancel"})
Class that defines the picker style for selecting TEnum.

Properties

backgroundColor Color?
Background color of the picker.
final
cancelText String
Text of the button to cancel the picker.
final
color Color?
Foreground view of the picker.
final
confirmText String
Text of the button that confirms the picker's content.
final
defaultValue → TEnum?
Default value when not selected.
final
hashCode int
The hash code for this object.
no setterinherited
labelBuilder → (String Function(TEnum? value)?)
Label builder to create text to display choices.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
values List<TEnum>
List of TEnum. Pass TEnum.values as is.
final

Methods

build(BuildContext context, TEnum? currentValue) Future<TEnum?>
Build the picker.
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