OptionSelectorField<K, T>.ofKey constructor

OptionSelectorField<K, T>.ofKey({
  1. Key? key,
  2. required JsonPath attribute,
  3. required String label,
  4. String? noOptionsLabel,
  5. bool? autofocus,
  6. bool? enabled,
  7. String? placeholder,
  8. required bool isRequired,
  9. required KeyedOptionsHandler<K, T> handler,
  10. required TypeaheadHandler<K, T> viewHandler,
  11. TypeaheadFocusMode? focusMode,
})

Implementation

OptionSelectorField.ofKey({
  Key? key,
  required JsonPath attribute,
  required String label,
  String? noOptionsLabel,
  bool? autofocus,
  bool? enabled,
  String? placeholder,
  required bool isRequired,
  required KeyedOptionsHandler<K, T> handler,
  required TypeaheadHandler<K, T> viewHandler,
  TypeaheadFocusMode? focusMode,
}) : this._(
        true,
        expected: ((option) => option?.key),
        key: key,
        attribute: attribute,
        label: label,
        enabled: enabled,
        noOptionsLabel: noOptionsLabel,
        autofocus: autofocus,
        placeholder: placeholder,
        isRequired: isRequired,
        handler: handler,
        viewHandler: viewHandler,
        focusMode: focusMode,
      );