copyWith method

  1. @override
CheckboxThemeData copyWith({
  1. Curve? curve,
  2. Duration? duration,
  3. CheckboxStyle? style,
})
override

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),
  );
}