merge method
- @Deprecated("'PushButton' no longer uses singular colors and therefore cannot " "be themed using a 'PushButtonTheme'.")
- PushButtonThemeData? other
Merges this PushButtonThemeData with another.
Implementation
@Deprecated(
"'PushButton' no longer uses singular colors and therefore cannot "
"be themed using a 'PushButtonTheme'.")
PushButtonThemeData merge(PushButtonThemeData? other) {
if (other == null) return this;
return copyWith(
color: other.color,
disabledColor: other.disabledColor,
secondaryColor: other.secondaryColor,
);
}