copyWith method
- @Deprecated("'PushButton' no longer uses singular colors and therefore cannot " "be themed using a 'PushButtonTheme'.")
Copies this PushButtonThemeData into another.
Implementation
@Deprecated(
"'PushButton' no longer uses singular colors and therefore cannot "
"be themed using a 'PushButtonTheme'.")
PushButtonThemeData copyWith({
Color? color,
Color? disabledColor,
Color? secondaryColor,
}) {
return PushButtonThemeData(
color: color ?? this.color,
disabledColor: disabledColor ?? this.disabledColor,
secondaryColor: secondaryColor ?? this.secondaryColor,
);
}