copyWith method

  1. @override
ThemeExtension<CartButtonTheme> copyWith({
  1. CartButtonStyle? style,
})
override

Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.

Implementation

@override
ThemeExtension<CartButtonTheme> copyWith({
  CartButtonStyle? style,
}) {
  return CartButtonTheme(style: style ?? this.style?.copyWith());
}