copyWith method

ToastOptions copyWith({
  1. BoxConstraints? constraints,
  2. GestureTapCallback? onToastTap,
  3. TextStyle? textStyle,
  4. Duration? duration,
  5. Color? color,
  6. Axis? direction,
  7. ToastBuilder? builder,
  8. GestureTapCallback? onModalTap,
  9. Color? backgroundColor,
  10. Color? foregroundColor,
  11. double? gaussian,
  12. bool? ignoring,
  13. bool? absorbing,
  14. AlignmentGeometry? alignment,
  15. FlAnimationStyle? animationStyle,
  16. Duration? animationDuration,
  17. double? elevation,
  18. Color? shadowColor,
  19. ShapeBorder? shape,
  20. bool? borderOnForeground,
  21. BorderRadiusGeometry? borderRadius,
  22. bool? safeLTRB,
  23. bool? resizeToAvoidBottomInset,
  24. Duration? insetAnimationDuration,
  25. Curve? insetAnimationCurve,
})

Implementation

ToastOptions copyWith({
  BoxConstraints? constraints,
  GestureTapCallback? onToastTap,
  TextStyle? textStyle,
  Duration? duration,
  Color? color,
  Axis? direction,
  ToastBuilder? builder,
  GestureTapCallback? onModalTap,
  Color? backgroundColor,
  Color? foregroundColor,
  double? gaussian,
  bool? ignoring,
  bool? absorbing,
  AlignmentGeometry? alignment,
  FlAnimationStyle? animationStyle,
  Duration? animationDuration,
  double? elevation,
  Color? shadowColor,
  ShapeBorder? shape,
  bool? borderOnForeground,
  BorderRadiusGeometry? borderRadius,
  bool? safeLTRB,
  bool? resizeToAvoidBottomInset,
  Duration? insetAnimationDuration,
  Curve? insetAnimationCurve,
}) =>
    ToastOptions.extended(
      color: color ?? this.color,
      backgroundColor: backgroundColor ?? this.backgroundColor,
      foregroundColor: foregroundColor ?? this.foregroundColor,
      animationDuration: animationDuration ?? this.animationDuration,
      animationStyle: animationStyle ?? this.animationStyle,
      constraints: constraints ?? this.constraints,
      onToastTap: onToastTap ?? this.onToastTap,
      textStyle: textStyle ?? this.textStyle,
      duration: duration ?? this.duration,
      builder: builder ?? this.builder,
      direction: direction ?? this.direction,
      ignoring: ignoring ?? this.ignoring,
      alignment: alignment ?? this.alignment,
      onModalTap: onModalTap ?? this.onModalTap,
      absorbing: ignoring ?? this.absorbing,
      gaussian: gaussian ?? this.gaussian,
      elevation: elevation ?? this.elevation,
      shadowColor: shadowColor ?? this.shadowColor,
      borderRadius: borderRadius ?? this.borderRadius,
      shape: shape ?? this.shape,
      borderOnForeground: borderOnForeground ?? this.borderOnForeground,
      safeLTRB: safeLTRB ?? this.safeLTRB,
      resizeToAvoidBottomInset:
          resizeToAvoidBottomInset ?? this.resizeToAvoidBottomInset,
      insetAnimationDuration:
          insetAnimationDuration ?? this.insetAnimationDuration,
      insetAnimationCurve: insetAnimationCurve ?? this.insetAnimationCurve,
    );