ShadButtonTheme constructor

const ShadButtonTheme({
  1. bool canMerge = true,
  2. MouseCursor? cursor,
  3. ShadButtonSize? size,
  4. ShadButtonSizesTheme? sizesTheme,
  5. Color? backgroundColor,
  6. Color? hoverBackgroundColor,
  7. Color? foregroundColor,
  8. Color? hoverForegroundColor,
  9. Color? pressedBackgroundColor,
  10. Color? pressedForegroundColor,
  11. List<BoxShadow>? shadows,
  12. Gradient? gradient,
  13. TextDecoration? textDecoration,
  14. TextDecoration? hoverTextDecoration,
  15. ShadDecoration? decoration,
  16. double? width,
  17. double? height,
  18. MainAxisAlignment? mainAxisAlignment,
  19. CrossAxisAlignment? crossAxisAlignment,
  20. Duration? longPressDuration,
  21. ShadHoverStrategies? hoverStrategies,
  22. TextDirection? textDirection,
  23. double? gap,
  24. bool? expands,
  25. TextStyle? textStyle,
})

Implementation

const ShadButtonTheme({
  bool canMerge = true,
  this.cursor,
  this.size,
  this.sizesTheme,
  this.backgroundColor,
  this.hoverBackgroundColor,
  this.foregroundColor,
  this.hoverForegroundColor,
  this.pressedBackgroundColor,
  this.pressedForegroundColor,
  this.shadows,
  this.gradient,
  this.textDecoration,
  this.hoverTextDecoration,
  this.decoration,
  this.width,
  this.height,
  this.mainAxisAlignment,
  this.crossAxisAlignment,
  this.longPressDuration,
  this.hoverStrategies,
  this.textDirection,
  this.gap,
  this.expands,
  this.textStyle,
}) : _canMerge = canMerge;