FastButton2 constructor

const FastButton2({
  1. Key? key,
  2. Duration trottleTimeDuration = kFastButtonTrottleTimeDuration,
  3. FastButtonEmphasis emphasis = FastButtonEmphasis.low,
  4. bool shouldTrottleTime = false,
  5. double borderWidth = 1.0,
  6. bool flexible = false,
  7. bool isEnabled = true,
  8. Color? highlightColor,
  9. String? semanticLabel,
  10. Color? disabledColor,
  11. BoxConstraints? constraints,
  12. Color? hoverColor,
  13. Color? focusColor,
  14. String? debugLabel,
  15. String? tooltip,
  16. EdgeInsetsGeometry? padding,
  17. VoidCallback? onTap,
  18. FastButtonSize? size,
})

Implementation

const FastButton2({
  super.key,
  this.trottleTimeDuration = kFastButtonTrottleTimeDuration,
  this.emphasis = FastButtonEmphasis.low,
  this.shouldTrottleTime = false,
  this.borderWidth = 1.0,
  this.flexible = false,
  this.isEnabled = true,
  this.highlightColor,
  this.semanticLabel,
  this.disabledColor,
  this.constraints,
  this.hoverColor,
  this.focusColor,
  this.debugLabel,
  this.tooltip,
  this.padding,
  this.onTap,
  this.size,
});