FastButton constructor

const FastButton({
  1. Key? key,
  2. required VoidCallback onTap,
  3. Duration trottleTimeDuration = kFastTrottleTimeDuration,
  4. FastButtonEmphasis emphasis = FastButtonEmphasis.low,
  5. bool shouldTrottleTime = false,
  6. bool upperCase = false,
  7. bool isEnabled = true,
  8. Color? highlightColor,
  9. Color? disabledColor,
  10. Color? overlayColor,
  11. Color? textColor,
  12. EdgeInsetsGeometry? padding,
  13. Widget? child,
  14. 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,
});