copyWith method
Creates a copy of this button style with the given fields replaced.
Implementation
NativeButtonStyle copyWith({
bool? showButton,
String? text,
Color? backgroundColor,
Color? textColor,
double? fontSize,
}) {
return NativeButtonStyle(
showButton: showButton ?? this.showButton,
text: text ?? this.text,
backgroundColor: backgroundColor ?? this.backgroundColor,
textColor: textColor ?? this.textColor,
fontSize: fontSize ?? this.fontSize,
);
}