copyWith method

  1. @override
VCheckboxStyle copyWith({
  1. Color? borderColor,
  2. dynamic borderColorDisabled,
  3. dynamic borderColorError,
  4. dynamic fillColor,
  5. dynamic fillColorPressed,
  6. dynamic fillColorDisabled,
  7. dynamic iconColor,
  8. dynamic iconColorError,
  9. dynamic textColor,
  10. dynamic textColorDisabled,
  11. dynamic textColorError,
  12. dynamic overlayColor,
  13. dynamic crossAxisAlignment,
})
override

Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.

Implementation

@override
VCheckboxStyle copyWith(
        {Color? borderColor,
        borderColorDisabled,
        borderColorError,
        fillColor,
        fillColorPressed,
        fillColorDisabled,
        iconColor,
        iconColorError,
        textColor,
        textColorDisabled,
        textColorError,
        overlayColor,
        crossAxisAlignment}) =>
    VCheckboxStyle(
      borderColor: borderColor ?? this.borderColor,
      borderColorDisabled: borderColorDisabled ?? this.borderColorDisabled,
      borderColorError: borderColorError ?? this.borderColorError,
      fillColor: fillColor ?? this.fillColor,
      fillColorPressed: fillColorPressed ?? this.fillColorPressed,
      fillColorDisabled: fillColorDisabled ?? this.fillColorDisabled,
      iconColor: iconColor ?? this.iconColor,
      iconColorError: iconColorError ?? this.iconColorError,
      textColor: textColor ?? this.textColor,
      textColorError: textColorError ?? this.textColorError,
      textColorDisabled: textColorDisabled ?? this.textColorDisabled,
      overlayColor: overlayColor ?? this.overlayColor,
      crossAxisAlignment: crossAxisAlignment ?? this.crossAxisAlignment,
    );