FormEnumFieldPicker<TEnum extends Enum> constructor
FormEnumFieldPicker<TEnum extends Enum> ({})
Class that defines the picker style for selecting TEnum
.
TEnum
を選択するためのピッカースタイルを定義するクラス。
Implementation
FormEnumFieldPicker({
this.defaultValue,
required this.values,
this.labelBuilder,
this.backgroundColor,
this.color,
this.confirmText = "Confirm",
this.cancelText = "Cancel",
}) : assert(
(defaultValue?.index ?? 0) < values.length,
"[defaultValue] is not included in [values].",
);