ofString static method

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

Implementation

static OptionSelectorField<String, String> ofString({
  Key? key,
  required JsonPath attribute,
  required String label,
  String? noOptionsLabel,
  String? placeholder,
  bool? autofocus,
  required bool isRequired,
  required OptionsHandler<String> handler,
  required TypeaheadHandler<String, String> viewHandler,
  TypeaheadFocusMode? focusMode,
}) {
  return OptionSelectorField<String, String>.ofKey(
    key: key,
    attribute: attribute,
    label: label,
    isRequired: isRequired,
    noOptionsLabel: noOptionsLabel,
    autofocus: autofocus,
    placeholder: placeholder,
    handler: handler,
    viewHandler: viewHandler,
    focusMode: focusMode,
  );
}