copyWith method

  1. @override
VFlagStyle copyWith({
  1. Color? infoIconColor,
  2. dynamic warningIconColor,
  3. dynamic errorIconColor,
  4. dynamic successIconColor,
  5. dynamic linkTextColor,
  6. dynamic linkUnderlineColor,
  7. dynamic closeIconColor,
  8. dynamic titleTextColor,
  9. dynamic descriptionTextColor,
  10. TextStyle? linkTextStyle,
  11. TextStyle? titleTextStyle,
  12. TextStyle? descriptionTextStyle,
  13. EdgeInsetsGeometry? closeIconPadding,
  14. VButtonStyle? linkStyle,
})
override

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

Implementation

@override
VFlagStyle copyWith({
  Color? infoIconColor,
  warningIconColor,
  errorIconColor,
  successIconColor,
  linkTextColor,
  linkUnderlineColor,
  closeIconColor,
  titleTextColor,
  descriptionTextColor,
  TextStyle? linkTextStyle,
  TextStyle? titleTextStyle,
  TextStyle? descriptionTextStyle,
  EdgeInsetsGeometry? closeIconPadding,
  VButtonStyle? linkStyle,
}) =>
    VFlagStyle(
      infoIconColor: infoIconColor ?? this.infoIconColor,
      warningIconColor: warningIconColor ?? this.warningIconColor,
      errorIconColor: errorIconColor ?? this.errorIconColor,
      successIconColor: successIconColor ?? this.successIconColor,
      linkTextColor: linkTextColor ?? this.linkTextColor,
      linkUnderlineColor: linkUnderlineColor ?? this.linkUnderlineColor,
      closeIconColor: closeIconColor ?? this.closeIconColor,
      titleTextColor: titleTextColor ?? this.titleTextColor,
      descriptionTextColor: descriptionTextColor ?? this.descriptionTextColor,
      linkTextStyle: linkTextStyle ?? this.linkTextStyle,
      titleTextStyle: titleTextStyle ?? this.titleTextStyle,
      descriptionTextStyle: descriptionTextStyle ?? this.descriptionTextStyle,
      closeIconPadding: closeIconPadding ?? this.closeIconPadding,
      linkStyle: linkStyle ?? this.linkStyle,
    );