copyWith method
ToastificationConfig
copyWith({
- AlignmentGeometry? alignment,
- double? itemWidth,
- Clip? clipBehavior,
- Duration? animationDuration,
- ToastificationAnimationBuilder? animationBuilder,
- ToastificationMarginBuilder? marginBuilder,
- int? maxToastLimit,
- bool? applyMediaQueryViewInsets,
- bool? blockBackgroundInteraction,
Implementation
ToastificationConfig copyWith({
AlignmentGeometry? alignment,
double? itemWidth,
Clip? clipBehavior,
Duration? animationDuration,
ToastificationAnimationBuilder? animationBuilder,
ToastificationMarginBuilder? marginBuilder,
int? maxToastLimit,
bool? applyMediaQueryViewInsets,
bool? blockBackgroundInteraction,
}) {
return ToastificationConfig(
alignment: alignment ?? this.alignment,
itemWidth: itemWidth ?? this.itemWidth,
clipBehavior: clipBehavior ?? this.clipBehavior,
animationDuration: animationDuration ?? this.animationDuration,
animationBuilder: animationBuilder ?? this.animationBuilder,
marginBuilder: marginBuilder ?? this.marginBuilder,
maxToastLimit: maxToastLimit ?? this.maxToastLimit,
applyMediaQueryViewInsets:
applyMediaQueryViewInsets ?? this.applyMediaQueryViewInsets,
blockBackgroundInteraction:
blockBackgroundInteraction ?? this.blockBackgroundInteraction,
);
}