ToastOptions constructor

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

Implementation

const ToastOptions({
  this.color,
  this.onToastTap,
  this.duration = const Duration(milliseconds: 1500),
  this.animationStyle,
  this.direction,
  this.builder,
  this.animationDuration,
  this.padding,
  super.backgroundColor,
  super.foregroundColor,
  super.alignment,
  super.onModalTap,
  super.gaussian,
  super.ignoring,
  super.absorbing,
  super.elevation,
  super.shadowColor,
  super.textStyle,
  super.borderRadius,
  super.borderOnForeground,
  super.shape,
  super.constraints,
  super.safeLTRB,
  super.resizeToAvoidBottomInset,
  super.insetAnimationCurve,
  super.insetAnimationDuration,
});