FastButton constructor
const
FastButton({
- Key? key,
- required VoidCallback onTap,
- Duration trottleTimeDuration = kFastTrottleTimeDuration,
- FastButtonEmphasis emphasis = FastButtonEmphasis.low,
- bool shouldTrottleTime = false,
- bool upperCase = false,
- bool isEnabled = true,
- Color? highlightColor,
- Color? disabledColor,
- Color? overlayColor,
- Color? textColor,
- EdgeInsetsGeometry? padding,
- Widget? child,
- String? text,
Implementation
const FastButton({
super.key,
required this.onTap,
this.trottleTimeDuration = kFastTrottleTimeDuration,
this.emphasis = FastButtonEmphasis.low,
this.shouldTrottleTime = false,
this.upperCase = false,
this.isEnabled = true,
this.highlightColor,
this.disabledColor,
this.overlayColor,
this.textColor,
this.padding,
this.child,
this.text,
});