copyWith method

VoToastTheme copyWith({
  1. VoToastStyle? defaultStyle,
  2. VoToastPosition? defaultPosition,
  3. Duration? duration,
  4. Color? backgroundColor,
  5. Color? borderColor,
  6. List<BoxShadow>? boxShadow,
  7. double? widthFactor,
  8. double? maxWidth,
  9. Duration? animationDuration,
  10. Curve? appearCurve,
  11. Curve? dismissCurve,
  12. double? snackBarRadius,
  13. double? bannerRadius,
  14. EdgeInsetsGeometry? contentPadding,
  15. VoToastAlignment? horizontalAlignment,
  16. double? leadingSize,
  17. int? maxLines,
  18. TextStyle? titleStyle,
  19. TextStyle? messageStyle,
  20. int? maxVisible,
  21. double? snackBarStackOffset,
  22. double? bannerStackOffset,
  23. double? secondStackScale,
  24. double? thirdStackScale,
  25. Widget? errorIcon,
  26. Widget? warningIcon,
  27. Widget? successIcon,
  28. Widget? infoIcon,
})

Implementation

VoToastTheme copyWith({
  VoToastStyle? defaultStyle,
  VoToastPosition? defaultPosition,
  Duration? duration,
  Color? backgroundColor,
  Color? borderColor,
  List<BoxShadow>? boxShadow,
  double? widthFactor,
  double? maxWidth,
  Duration? animationDuration,
  Curve? appearCurve,
  Curve? dismissCurve,
  double? snackBarRadius,
  double? bannerRadius,
  EdgeInsetsGeometry? contentPadding,
  VoToastAlignment? horizontalAlignment,
  double? leadingSize,
  int? maxLines,
  TextStyle? titleStyle,
  TextStyle? messageStyle,
  int? maxVisible,
  double? snackBarStackOffset,
  double? bannerStackOffset,
  double? secondStackScale,
  double? thirdStackScale,
  Widget? errorIcon,
  Widget? warningIcon,
  Widget? successIcon,
  Widget? infoIcon,
}) => VoToastTheme(
  defaultStyle: defaultStyle ?? this.defaultStyle,
  defaultPosition: defaultPosition ?? this.defaultPosition,
  duration: duration ?? this.duration,
  animationDuration: animationDuration ?? this.animationDuration,
  appearCurve: appearCurve ?? this.appearCurve,
  dismissCurve: dismissCurve ?? this.dismissCurve,
  backgroundColor: backgroundColor ?? this.backgroundColor,
  borderColor: borderColor ?? this.borderColor,
  boxShadow: boxShadow ?? this.boxShadow,
  widthFactor: widthFactor ?? this.widthFactor,
  maxWidth: maxWidth ?? this.maxWidth,
  snackBarRadius: snackBarRadius ?? this.snackBarRadius,
  bannerRadius: bannerRadius ?? this.bannerRadius,
  contentPadding: contentPadding ?? this.contentPadding,
  horizontalAlignment: horizontalAlignment ?? this.horizontalAlignment,
  leadingSize: leadingSize ?? this.leadingSize,
  maxLines: maxLines ?? this.maxLines,
  titleStyle: titleStyle ?? this.titleStyle,
  messageStyle: messageStyle ?? this.messageStyle,
  errorIcon: errorIcon ?? this.errorIcon,
  warningIcon: warningIcon ?? this.warningIcon,
  successIcon: successIcon ?? this.successIcon,
  infoIcon: infoIcon ?? this.infoIcon,
  maxVisible: maxVisible ?? this.maxVisible,
  snackBarStackOffset: snackBarStackOffset ?? this.snackBarStackOffset,
  bannerStackOffset: bannerStackOffset ?? this.bannerStackOffset,
  secondStackScale: secondStackScale ?? this.secondStackScale,
  thirdStackScale: thirdStackScale ?? this.thirdStackScale,
);