copyWith method

ContainedButtonThemeData copyWith({
  1. ButtonStyle? style,
  2. GBButtonGradient? gradient,
  3. 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,
  );
}