merge method
Merges the theme data ButtonThemeData.
Implementation
ButtonThemeData merge(ButtonThemeData? other) {
if (other == null) {
return this;
}
return copyWith(
axis: other.axis,
iconThemeData: other.iconThemeData,
itemSpacing: other.itemSpacing,
filledSpacing: other.filledSpacing,
height: other.height,
minWidth: other.minWidth,
textStyle: other.textStyle,
disabledColor: other.disabledColor,
color: other.color,
focusColor: other.focusColor,
hoverColor: other.hoverColor,
highlightColor: other.highlightColor,
background: other.background,
focusBackground: other.focusBackground,
hoverBackground: other.hoverBackground,
highlightBackground: other.highlightBackground,
foreground: other.foreground,
hoverForeground: other.hoverForeground,
highlightForeground: other.highlightForeground,
animationDuration: other.animationDuration,
);
}