SmartDebouncerTextField constructor
SmartDebouncerTextField({
- Key? key,
- required Duration delay,
- bool leading = false,
- bool trailing = true,
- Duration? maxWait,
- ValueChanged<
String> ? onChangedDebounced, - ValueChanged<
String> ? onChanged, - TextEditingController? controller,
- FocusNode? focusNode,
- InputDecoration? decoration,
- TextInputType? keyboardType,
- TextInputAction? textInputAction,
- TextStyle? style,
- TextAlign textAlign = TextAlign.start,
- bool autofocus = false,
- bool obscureText = false,
- bool? enabled,
- int? minLines,
- int? maxLines = 1,
- ValueChanged<
String> ? onSubmitted, - TextCapitalization textCapitalization = TextCapitalization.none,
Implementation
SmartDebouncerTextField({
super.key,
required this.delay,
this.leading = false,
this.trailing = true,
this.maxWait,
this.onChangedDebounced,
this.onChanged,
this.controller,
this.focusNode,
this.decoration,
this.keyboardType,
this.textInputAction,
this.style,
this.textAlign = TextAlign.start,
this.autofocus = false,
this.obscureText = false,
this.enabled,
this.minLines,
this.maxLines = 1,
this.onSubmitted,
this.textCapitalization = TextCapitalization.none,
}) : assert(!delay.isNegative, 'delay must be >= 0'),
assert(leading || trailing, 'Either leading or trailing must be enabled');