FastCopyButton constructor

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

Implementation

const FastCopyButton({
  super.key,
  String? valueText,
  super.trottleTimeDuration = kFastButtonTrottleTimeDuration,
  super.emphasis = FastButtonEmphasis.low,
  super.iconAlignment = Alignment.center,
  super.shouldTrottleTime = true,
  this.showNotification = true,
  super.isEnabled = true,
  super.highlightColor,
  super.disabledColor,
  super.semanticLabel,
  super.constraints,
  super.focusColor,
  super.hoverColor,
  super.debugLabel,
  super.iconColor,
  super.flexible,
  super.iconSize,
  super.tooltip,
  super.padding,
  this.message,
  super.onTap,
  super.icon,
  super.size,
}) : valueText = valueText ?? kFastEmptyString;