copyWith method

  1. @override
VSectionMessageStyle copyWith({
  1. Color? normalColor,
  2. dynamic infoBGColor,
  3. dynamic infoIconColor,
  4. dynamic infoHLColor,
  5. dynamic warningBGColor,
  6. dynamic warningIconColor,
  7. dynamic warningHLColor,
  8. dynamic errorBGColor,
  9. dynamic errorIconColor,
  10. dynamic errorHLColor,
  11. dynamic successBGColor,
  12. dynamic successIconColor,
  13. dynamic successHLColor,
  14. dynamic subtleBGColor,
  15. dynamic subtleHLColor,
  16. dynamic subtleIconColor,
  17. dynamic borderColor,
})
override

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

Implementation

@override
VSectionMessageStyle copyWith({
  Color? normalColor,
  infoBGColor,
  infoIconColor,
  infoHLColor,
  warningBGColor,
  warningIconColor,
  warningHLColor,
  errorBGColor,
  errorIconColor,
  errorHLColor,
  successBGColor,
  successIconColor,
  successHLColor,
  subtleBGColor,
  subtleHLColor,
  subtleIconColor,
  borderColor,
}) =>
    VSectionMessageStyle(
      normalColor: normalColor ?? this.normalColor,
      infoBGColor: infoBGColor ?? this.infoBGColor,
      infoIconColor: infoIconColor ?? this.infoIconColor,
      infoHLColor: infoHLColor ?? this.infoHLColor,
      warningBGColor: warningBGColor ?? this.warningBGColor,
      warningIconColor: warningIconColor ?? this.warningIconColor,
      warningHLColor: warningHLColor ?? this.warningHLColor,
      errorBGColor: errorBGColor ?? this.errorBGColor,
      errorIconColor: errorIconColor ?? this.errorIconColor,
      errorHLColor: errorHLColor ?? this.errorHLColor,
      successBGColor: successBGColor ?? this.successBGColor,
      successIconColor: successIconColor ?? this.successIconColor,
      successHLColor: successHLColor ?? this.successHLColor,
      subtleBGColor: subtleBGColor ?? this.subtleBGColor,
      subtleHLColor: subtleHLColor ?? this.subtleHLColor,
      subtleIconColor: subtleIconColor ?? this.subtleIconColor,
      borderColor: borderColor ?? this.borderColor,
    );