copyWith method
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,
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,
);