SmartDebouncerButton constructor
SmartDebouncerButton({
- Key? key,
- required Widget child,
- required Duration delay,
- VoidCallback? onPressed,
- bool leading = true,
- bool trailing = false,
- Duration? maxWait,
- 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');