copyWith method
ContainedButtonThemeData
copyWith({
- ButtonStyle? style,
- GBButtonGradient? gradient,
- bool? uppercase,
Creates a copy of this theme but with the given fields replaced with the new values.
Implementation
ContainedButtonThemeData copyWith({
ButtonStyle? style,
GBButtonGradient? gradient,
bool? uppercase,
}) {
return ContainedButtonThemeData(
style: style ?? this.style,
gradient: gradient ?? this.gradient,
uppercase: uppercase ?? this.uppercase,
);
}