FastToolBarButton constructor

const FastToolBarButton({
  1. Key? key,
  2. required Widget icon,
  3. Duration trottleTimeDuration = kFastButtonTrottleTimeDuration,
  4. FastButtonEmphasis emphasis = FastButtonEmphasis.low,
  5. bool shouldTrottleTime = false,
  6. bool upperCase = false,
  7. bool isEnabled = true,
  8. bool flexible = false,
  9. Color? highlightColor,
  10. String? semanticLabel,
  11. Color? disabledColor,
  12. Alignment? iconAlignment,
  13. BoxConstraints? constraints,
  14. String? debugLabel,
  15. Color? focusColor,
  16. Color? hoverColor,
  17. TextStyle? textStyle,
  18. String? labelText,
  19. Color? iconColor,
  20. double? iconSize,
  21. EdgeInsetsGeometry? padding,
  22. String? tooltip,
  23. VoidCallback? onTap,
  24. FastButtonSize? size,
})

Implementation

const FastToolBarButton({
  super.key,
  required this.icon,
  this.trottleTimeDuration = kFastButtonTrottleTimeDuration,
  this.emphasis = FastButtonEmphasis.low,
  this.shouldTrottleTime = false,
  this.upperCase = false,
  this.isEnabled = true,
  this.flexible = false,
  this.highlightColor,
  this.semanticLabel,
  this.disabledColor,
  this.iconAlignment,
  this.constraints,
  this.debugLabel,
  this.focusColor,
  this.hoverColor,
  this.textStyle,
  this.labelText,
  this.iconColor,
  this.iconSize,
  this.padding,
  this.tooltip,
  this.onTap,
  this.size,
});