FormMapFieldPicker class
Class that defines the picker style for selection from Map.
Pass Map<String, String>
to data.
Key in Map is the ID for selection and Value is the display label for selection.
If defaultKey is not in the key of data, an error will occur.
Mapから選択するためのピッカースタイルを定義するクラス。
Map<String, String>
をdataに渡します。
MapのKeyが選択用のID、Valueが選択用の表示ラベルになります。
defaultKeyがdataのキーにない場合エラーになります。
- Available Extensions
Constructors
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
-
data
→ Map<
String, String> -
Data for options.
final
- defaultKey → String
-
Specifies the key if not selected.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
build(
BuildContext context, String? currentKey) → Future< String?> - 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