PlexFormField.multiselect constructor
PlexFormField.multiselect({
- required String title,
- required dynamic onChange(
- dynamic value
- String itemAsString(
- dynamic item
- bool editable = true,
- List? initialSelection,
- List? items,
- Future<
List> ? itemsAsync, - Widget dropdownWidget(
- dynamic
- Widget dropdownLeadingWidget(
- dynamic
- bool showWhen(
- dynamic formState
Implementation
PlexFormField.multiselect({
required this.title,
required this.onChange,
this.itemAsString,
this.editable = true,
this.initialSelection,
this.items,
this.itemsAsync,
this.dropdownWidget,
this.dropdownLeadingWidget,
this.showWhen,
}) {
if (items == null && itemsAsync == null) {
throw Exception("Items must be initialized or async item function must be initialized");
}
fieldType = TYPE_MULTISELECT;
}