copyWith method
VSectionMessageStyle
copyWith({
- Color? normalColor,
- dynamic infoBGColor,
- dynamic infoIconColor,
- dynamic infoHLColor,
- dynamic warningBGColor,
- dynamic warningIconColor,
- dynamic warningHLColor,
- dynamic errorBGColor,
- dynamic errorIconColor,
- dynamic errorHLColor,
- dynamic successBGColor,
- dynamic successIconColor,
- dynamic successHLColor,
- dynamic subtleBGColor,
- dynamic subtleHLColor,
- dynamic subtleIconColor,
- 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,
);