copyWith method

ToastificationConfig copyWith({
  1. AlignmentGeometry? alignment,
  2. double? itemWidth,
  3. Clip? clipBehavior,
  4. Duration? animationDuration,
  5. ToastificationAnimationBuilder? animationBuilder,
  6. ToastificationMarginBuilder? marginBuilder,
  7. int? maxToastLimit,
  8. bool? applyMediaQueryViewInsets,
  9. 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,
  );
}