SmartDebouncerButton constructor

SmartDebouncerButton({
  1. Key? key,
  2. required Widget child,
  3. required Duration delay,
  4. VoidCallback? onPressed,
  5. bool leading = true,
  6. bool trailing = false,
  7. Duration? maxWait,
  8. ButtonStyle? style,
})

Implementation

SmartDebouncerButton({
   super.key,
   required this.child,
   required this.delay,
   this.onPressed,
   this.leading = true,
   this.trailing = false,
   this.maxWait,
   this.style,
 })  : assert(!delay.isNegative, 'delay must be >= 0'),
       assert(leading || trailing, 'Either leading or trailing must be enabled');