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? textColor,
  10. EdgeInsetsGeometry? padding,
  11. Widget? child,
  12. 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.textColor,
  this.padding,
  this.child,
  this.text,
});