ToastOptions constructor
const
ToastOptions({
- Color? color,
- GestureTapCallback? onToastTap,
- Duration duration = const Duration(milliseconds: 1500),
- FlAnimationStyle? animationStyle,
- Axis? direction,
- ToastBuilder? builder,
- Duration? animationDuration,
- EdgeInsetsGeometry? padding,
- Color? backgroundColor,
- Color? foregroundColor,
- AlignmentGeometry? alignment,
- GestureTapCallback? onModalTap,
- double gaussian = 0,
- bool? ignoring,
- bool? absorbing,
- double? elevation,
- Color? shadowColor,
- TextStyle? textStyle,
- BorderRadiusGeometry? borderRadius,
- bool? borderOnForeground,
- ShapeBorder? shape,
- BoxConstraints? constraints,
- bool safeLTRB = true,
- bool resizeToAvoidBottomInset = true,
- Curve insetAnimationCurve = Curves.decelerate,
- 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,
});