copyWith method

  1. @useResult
FCheckboxStyle copyWith({
  1. Duration? animationDuration,
  2. Curve? curve,
  3. FLabelLayoutStyle? labelLayoutStyle,
  4. FCheckboxStateStyle? enabledStyle,
  5. FCheckboxStateStyle? disabledStyle,
  6. FCheckboxErrorStyle? errorStyle,
})

Returns a copy of this FCheckboxStyle with the given properties replaced.

Implementation

@useResult
FCheckboxStyle copyWith({
  Duration? animationDuration,
  Curve? curve,
  FLabelLayoutStyle? labelLayoutStyle,
  FCheckboxStateStyle? enabledStyle,
  FCheckboxStateStyle? disabledStyle,
  FCheckboxErrorStyle? errorStyle,
}) =>
    FCheckboxStyle(
      animationDuration: animationDuration ?? this.animationDuration,
      curve: curve ?? this.curve,
      labelLayoutStyle: labelLayoutStyle ?? this.labelLayoutStyle,
      enabledStyle: enabledStyle ?? this.enabledStyle,
      disabledStyle: disabledStyle ?? this.disabledStyle,
      errorStyle: errorStyle ?? this.errorStyle,
    );