copyWith method

ButtonThemeData copyWith(
  1. ButtonThemeData? style
)

Implementation

ButtonThemeData copyWith(ButtonThemeData? style) {
  if (style == null) return this;
  return ButtonThemeData(
    decoration: style.decoration ?? decoration,
    cursor: style.cursor ?? cursor,
    textStyle: style.textStyle ?? textStyle,
    margin: style.margin ?? margin,
    padding: style.padding ?? padding,
    animationCurve: style.animationCurve ?? animationCurve,
    animationDuration: style.animationDuration ?? animationDuration,
    scaleFactor: style.scaleFactor ?? scaleFactor,
  );
}