copyWith method
Creates a copy of this RadioThemeData but with the given fields replaced with the new values.
Implementation
@override
RadioThemeData copyWith({
Curve? curve,
Duration? duration,
RadioStyle? style,
}) {
return RadioThemeData(
curve: curve ?? this.curve,
duration: duration ?? this.duration,
style: this.style.merge(style),
);
}