AntdSearchBar constructor

const AntdSearchBar({
  1. Key? key,
  2. AntdSearchBarStyle? style,
  3. AntdStyleBuilder<AntdSearchBarStyle, AntdSearchBar>? styleBuilder,
  4. Widget? extra,
  5. bool autoClear = true,
  6. bool autoFocus = true,
  7. bool showExtra = false,
  8. bool clearable = true,
  9. Widget? prefix,
  10. VoidCallback? onClear,
  11. ValueChanged<String?>? onChange,
  12. VoidCallback? onExtraTap,
  13. Widget? placeholder,
  14. AntdSearchBarController? controller,
  15. bool readOnly = false,
  16. bool lazy = false,
  17. Duration duration = const Duration(milliseconds: 200),
})

Implementation

const AntdSearchBar(
    {super.key,
    super.style,
    super.styleBuilder,
    this.extra,
    this.autoClear = true,
    this.autoFocus = true,
    this.showExtra = false,
    this.clearable = true,
    this.prefix,
    this.onClear,
    this.onChange,
    this.onExtraTap,
    this.placeholder,
    this.controller,
    this.readOnly = false,
    this.lazy = false,
    this.duration = const Duration(milliseconds: 200)});