FormMapTagDropdownFieldPicker class
Class that defines a picker style to select from Map for tags.
Pass Map<String, String> to values.
Key in Map is the ID for selection and Value is the display label for selection.
The display of selected values can be customized by specifying chipBuilder.
By specifying onEdit, it is possible to set up a callback to be executed when editing choices.
タグ用のMapから選択するためのピッカースタイルを定義するクラス。
Map<String, String>をvaluesに渡します。
MapのKeyが選択用のID、Valueが選択用の表示ラベルになります。
chipBuilderを指定することで選択された値の表示をカスタマイズすることが可能です。
onEditを指定することで選択肢の編集時に実行されるコールバックを設定することが可能です。
Constructors
-
FormMapTagDropdownFieldPicker({required Map<
String, String> values, Color? backgroundColor, Color? color, Widget chipBuilder(BuildContext context, String value)?, void onEdit(MapEntry<String, String> entry)?, void onDelete(String value)?, void onAdd(MapEntry<String, String> entry)?, EdgeInsetsGeometry? tilePadding, double? width}) - Class that defines a picker style to select from Map for tags.
Properties
- backgroundColor → Color?
-
Background color of the picker.
final
- chipBuilder → FormFieldErrorBuilder?
-
Customize the display of selected values.
final
- color → Color?
-
Foreground view of the picker.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
onAdd
→ void Function(MapEntry<
String, String> entry)? -
Callback to be executed when adding choices.
final
- onDelete → void Function(String value)?
-
Callback to be executed when deleting choices.
final
-
onEdit
→ void Function(MapEntry<
String, String> entry)? -
Callback to be executed when editing choices.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tilePadding → EdgeInsetsGeometry?
-
Padding for each tile.
final
-
values
→ Map<
String, String> -
Data for options.
final
- width → double?
-
Tile width.
final
Methods
-
buildChips(
BuildContext context, Map< String, String> data, FormMapTagDropdownFieldRef<List< ref) → WidgetString> > - Displays the selected value.
-
buildPicker(
BuildContext context, Map< String, String> data, FormMapTagDropdownFieldRef<List< ref) → List<String> >Widget> - 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