SmartDebouncerTextField constructor

SmartDebouncerTextField({
  1. Key? key,
  2. required Duration delay,
  3. bool leading = false,
  4. bool trailing = true,
  5. Duration? maxWait,
  6. ValueChanged<String>? onChangedDebounced,
  7. ValueChanged<String>? onChanged,
  8. TextEditingController? controller,
  9. FocusNode? focusNode,
  10. InputDecoration? decoration,
  11. TextInputType? keyboardType,
  12. TextInputAction? textInputAction,
  13. TextStyle? style,
  14. TextAlign textAlign = TextAlign.start,
  15. bool autofocus = false,
  16. bool obscureText = false,
  17. bool? enabled,
  18. int? minLines,
  19. int? maxLines = 1,
  20. ValueChanged<String>? onSubmitted,
  21. 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');