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