MButtonStyle constructor

const MButtonStyle({
  1. MaterialStateProperty<TextStyle?>? textStyle,
  2. MaterialStateProperty<Color?>? backgroundColor,
  3. MaterialStateProperty<Color?>? foregroundColor,
  4. MaterialStateProperty<Color?>? overlayColor,
  5. MaterialStateProperty<Color?>? shadowColor,
  6. MaterialStateProperty<Color?>? surfaceTintColor,
  7. MaterialStateProperty<double?>? elevation,
  8. MaterialStateProperty<EdgeInsetsGeometry?>? padding,
  9. MaterialStateProperty<Size?>? minimumSize,
  10. MaterialStateProperty<Size?>? fixedSize,
  11. MaterialStateProperty<Size?>? maximumSize,
  12. MaterialStateProperty<Color?>? iconColor,
  13. MaterialStateProperty<double?>? iconSize,
  14. MaterialStateProperty<BorderSide?>? side,
  15. MaterialStateProperty<OutlinedBorder?>? shape,
  16. MaterialStateProperty<MouseCursor?>? mouseCursor,
  17. VisualDensity? visualDensity,
  18. MaterialTapTargetSize? tapTargetSize,
  19. Duration? animationDuration,
  20. bool? enableFeedback,
  21. AlignmentGeometry? alignment,
  22. InteractiveInkFeatureFactory? splashFactory,
  23. bool? clearPadding,
  24. bool? clearOverlay,
  25. bool? clearSplash,
})

Implementation

const MButtonStyle({
  super.textStyle,
  super.backgroundColor,
  super.foregroundColor,
  MaterialStateProperty<Color?>? overlayColor,
  super.shadowColor,
  super.surfaceTintColor,
  super.elevation,
  MaterialStateProperty<EdgeInsetsGeometry?>? padding,
  MaterialStateProperty<Size?>? minimumSize,
  super.fixedSize,
  super.maximumSize,
  super.iconColor,
  super.iconSize,
  super.side,
  super.shape,
  super.mouseCursor,
  super.visualDensity,
  MaterialTapTargetSize? tapTargetSize,
  super.animationDuration,
  super.enableFeedback,
  super.alignment,
  InteractiveInkFeatureFactory? splashFactory,
  this.clearPadding,
  this.clearOverlay,
  this.clearSplash,
}) : super(
        overlayColor: overlayColor ??
            (clearOverlay != null && clearOverlay
                ? const MaterialStatePropertyAll(Colors.transparent)
                : null),
        padding: padding ??
            (clearPadding != null && clearPadding
                ? const MaterialStatePropertyAll(EdgeInsets.zero)
                : null),
        minimumSize: minimumSize ??
            (clearPadding != null && clearPadding
                ? const MaterialStatePropertyAll(Size.zero)
                : null),
        tapTargetSize: tapTargetSize ??
            (clearPadding != null && clearPadding
                ? MaterialTapTargetSize.shrinkWrap
                : null),
        splashFactory: splashFactory ??
            (clearSplash != null && clearSplash
                ? NoSplash.splashFactory
                : null),
      );