FMSearchField constructor

const FMSearchField({
  1. Key? key,
  2. FMData? initialValue,
  3. dynamic onSearchError(
    1. Object,
    2. StackTrace
    )?,
  4. FMSearchOptions? searchOptions,
  5. TextFormField textFieldBuilder(
    1. FocusNode focusNode,
    2. TextEditingController controller,
    3. void onChanged(
      1. String
      )?
    )?,
  6. required dynamic onSelected(
    1. FMData
    ),
  7. required TextEditingController textController,
  8. FMSearchResultListOptions? searchResultListOptions,
  9. dynamic onOverlayVisibilityChanged(
    1. bool
    )?,
  10. EdgeInsets margin = const EdgeInsets.all(20),
})

Implementation

const FMSearchField({
  super.key,
  this.initialValue,
  this.onSearchError,
  this.searchOptions,
  this.textFieldBuilder,
  required this.onSelected,
  required this.textController,
  this.searchResultListOptions,
  this.onOverlayVisibilityChanged,
  this.margin = const EdgeInsets.all(20),
});