copyWith method

Implementation

ToggleButtonThemeData copyWith(ToggleButtonThemeData? style) {
  if (style == null) return this;
  return ToggleButtonThemeData(
    margin: style.margin ?? margin,
    padding: style.padding ?? padding,
    cursor: style.cursor ?? cursor,
    animationCurve: style.animationCurve ?? animationCurve,
    animationDuration: style.animationDuration ?? animationDuration,
    checkedDecoration: style.checkedDecoration ?? checkedDecoration,
    uncheckedDecoration: style.uncheckedDecoration ?? uncheckedDecoration,
    scaleFactor: style.scaleFactor ?? scaleFactor,
  );
}