PlexFormField.multiselect constructor

PlexFormField.multiselect({
  1. required String title,
  2. required dynamic onChange(
    1. dynamic value
    ),
  3. String itemAsString(
    1. dynamic item
    )?,
  4. bool editable = true,
  5. List? initialSelection,
  6. List? items,
  7. Future<List>? itemsAsync,
  8. Widget dropdownWidget(
    1. dynamic
    )?,
  9. Widget dropdownLeadingWidget(
    1. dynamic
    )?,
})

Implementation

PlexFormField.multiselect({
  required this.title,
  required this.onChange,
  this.itemAsString,
  this.editable = true,
  this.initialSelection,
  this.items,
  this.itemsAsync,
  this.dropdownWidget,
  this.dropdownLeadingWidget,
}) {
  if (items == null && itemsAsync == null) {
    throw Exception("Items must be initialized or async item function must be initialized");
  }
  fieldType = TYPE_MULTISELECT;
}