copyWith method

MFGooglePayButtonConfig copyWith({
  1. int? buttonType,
  2. int? buttonTheme,
  3. int? cornerRadius,
})

Copy with method for creating modified configs

Implementation

MFGooglePayButtonConfig copyWith({
  int? buttonType,
  int? buttonTheme,
  int? cornerRadius,
}) {
  return MFGooglePayButtonConfig(
    buttonType: buttonType ?? this.buttonType,
    buttonTheme: buttonTheme ?? this.buttonTheme,
    cornerRadius: cornerRadius ?? this.cornerRadius,
  );
}