SelectionFormFieldWidget<T> constructor

SelectionFormFieldWidget<T>({
  1. GlobalKey<SelectionFormFieldWidgetState>? key,
  2. SelectionFormFieldStyle? style,
  3. FocusNode? focusNode,
  4. FocusNode? nextFocus,
  5. String? label,
  6. String? selectionTitle,
  7. String? clearText,
  8. Widget? prefixIcon,
  9. Widget? suffixIcon,
  10. T? initialValue,
  11. required List<ListDialogOption<T>> options,
  12. ValueChanged<T?>? onChange,
  13. List<FormFieldValidation<T>>? validations,
  14. bool hasFilter = false,
  15. String? filterText,
})

SelectionFormFieldWidget initialization

Implementation

SelectionFormFieldWidget({
  GlobalKey<SelectionFormFieldWidgetState>? key,
  this.style,
  this.focusNode,
  this.nextFocus,
  this.label,
  this.selectionTitle,
  this.clearText,
  this.prefixIcon,
  this.suffixIcon,
  this.initialValue,
  required this.options,
  this.onChange,
  this.validations,
  this.hasFilter = false,
  this.filterText,
})  : assert(options.isNotEmpty),
      assert((focusNode == null && nextFocus == null) || focusNode != null),
      super(key: key);