AntdSearchBar constructor
const
AntdSearchBar({
- Key? key,
- AntdSearchBarStyle? style,
- AntdStyleBuilder<
AntdSearchBarStyle, AntdSearchBar> ? styleBuilder, - Widget? extra,
- bool autoClear = true,
- bool autoFocus = true,
- bool showExtra = false,
- bool clearable = true,
- Widget? prefix,
- VoidCallback? onClear,
- ValueChanged<
String?> ? onChange, - VoidCallback? onExtraTap,
- Widget? placeholder,
- AntdSearchBarController? controller,
- bool readOnly = false,
- bool lazy = false,
- 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)});