rebase static method
Method for modifying final properties.
Implementation
static ButtonStyle rebase(
ButtonStyle? style, {
MaterialStateProperty<Color?>? backgroundColor,
}) {
return ButtonStyle(
backgroundColor: backgroundColor ?? style?.backgroundColor,
);
}