ButtonStyle.elevated constructor

const ButtonStyle.elevated({
  1. Color? color,
  2. SheetSeverity? severity,
  3. double? width,
  4. double? height,
  5. EdgeInsetsGeometry? margin,
  6. EdgeInsetsGeometry? padding,
  7. Clip? clipBehavior,
  8. bool? overlayDisabled,
  9. Color? overlayColor,
  10. Color? shadowColor,
  11. Color? surfaceTint,
  12. double? elevation,
  13. TextStyle? foregroundStyle,
  14. double? foregroundOpacity,
  15. int? foregroundAlpha,
  16. double? foregroundSpacing,
  17. bool? foregroundLoosen,
  18. bool? foregroundExpanded,
  19. CrossAxisAlignment? foregroundAlign,
  20. MainAxisAlignment? foregroundJustify,
  21. Color? backgroundColor,
  22. double? backgroundOpacity,
  23. int? backgroundAlpha,
  24. double? borderOpacity,
  25. int? borderAlpha,
  26. double? borderWidth,
  27. BorderRadius? borderRadius,
  28. BorderStyle? borderStyle,
  29. BoxShape? shape,
  30. Color? iconColor,
  31. double? iconOpacity,
  32. double? iconSize,
})

Create a ButtonStyle with default value for elevated style.

Implementation

const ButtonStyle.elevated({
  Color? color,
  super.severity,
  super.width,
  super.height,
  super.margin,
  super.padding,
  super.clipBehavior,
  super.overlayDisabled,
  super.overlayColor,
  super.shadowColor,
  super.surfaceTint,
  super.elevation,
  super.foregroundStyle,
  super.foregroundOpacity,
  super.foregroundAlpha,
  super.foregroundSpacing,
  super.foregroundLoosen,
  super.foregroundExpanded,
  super.foregroundAlign,
  super.foregroundJustify,
  super.backgroundColor,
  super.backgroundOpacity,
  super.backgroundAlpha,
  super.borderOpacity,
  super.borderAlpha,
  super.borderWidth,
  super.borderRadius,
  super.borderStyle,
  super.shape,
  super.iconColor,
  super.iconOpacity,
  super.iconSize,
}) : super(
        variant: ButtonVariant.elevated,
        foregroundColor: color,
        borderColor: color,
      );