isButtonStyle static method

ButtonStyle isButtonStyle({
  1. Color? backgroundColor,
  2. Color? foregroundColor,
  3. Color? overlayColor,
  4. Color? shadowColor,
  5. Color? surfaceTintColor,
  6. double? elevation,
  7. TextStyle? textStyle,
  8. EdgeInsetsGeometry? padding,
  9. Size? minimumSize,
  10. Size? fixedSize,
  11. Size? maximumSize,
  12. BorderSide? side,
  13. OutlinedBorder? shape,
  14. MouseCursor? mouseCursor,
  15. VisualDensity? visualDensity,
  16. MaterialTapTargetSize? tapTargetSize,
  17. Duration? animationDuration,
  18. bool? enableFeedback,
  19. AlignmentGeometry? alignment,
  20. InteractiveInkFeatureFactory? splashFactory,
})

Implementation

static ButtonStyle isButtonStyle({
  Color? backgroundColor,
  Color? foregroundColor,
  Color? overlayColor,
  Color? shadowColor,
  Color? surfaceTintColor,
  double? elevation,
  TextStyle? textStyle,
  EdgeInsetsGeometry? padding,
  Size? minimumSize,
  Size? fixedSize,
  Size? maximumSize,
  BorderSide? side,
  OutlinedBorder? shape,
  MouseCursor? mouseCursor,
  VisualDensity? visualDensity,
  MaterialTapTargetSize? tapTargetSize,
  Duration? animationDuration,
  bool? enableFeedback,
  AlignmentGeometry? alignment,
  InteractiveInkFeatureFactory? splashFactory,
}) {
  return ButtonStyle(
    textStyle: MaterialStateProperty.all<TextStyle?>(textStyle),
    backgroundColor: MaterialStateProperty.all(backgroundColor),
    foregroundColor: ButtonStyleButton.allOrNull<Color>(foregroundColor),
    overlayColor: ButtonStyleButton.allOrNull<Color>(overlayColor),
    shadowColor: ButtonStyleButton.allOrNull<Color>(shadowColor),
    surfaceTintColor: ButtonStyleButton.allOrNull<Color>(surfaceTintColor),
    elevation: MaterialStateProperty.all(elevation),
    padding: ButtonStyleButton.allOrNull<EdgeInsetsGeometry>(padding),
    minimumSize: ButtonStyleButton.allOrNull<Size>(minimumSize),
    fixedSize: ButtonStyleButton.allOrNull<Size>(fixedSize),
    maximumSize: ButtonStyleButton.allOrNull<Size>(maximumSize),
    side: ButtonStyleButton.allOrNull<BorderSide>(side),
    shape: ButtonStyleButton.allOrNull<OutlinedBorder>(shape),
    mouseCursor: MaterialStateProperty.all<MouseCursor?>(mouseCursor),
    visualDensity: visualDensity,
    tapTargetSize: tapTargetSize,
    animationDuration: animationDuration,
    enableFeedback: enableFeedback,
    alignment: alignment,
    splashFactory: splashFactory,
  );
}