Toast constructor
const
Toast({
- Key? key,
- required Widget child,
- Duration? duration,
- Duration? animationDuration = kDefaultToastAnimationDuration,
- Duration? reverseAnimationDuration = kDefaultToastAnimationDuration,
- AlignmentGeometry? alignment = Alignment.bottomCenter,
- ToastAnimationBuilder? animationBuilder,
- EdgeInsets? padding,
- VoidCallback? onDismiss,
- String? semanticsLabel,
Implementation
const Toast({
Key? key,
required this.child,
this.duration,
this.animationDuration = kDefaultToastAnimationDuration,
this.reverseAnimationDuration = kDefaultToastAnimationDuration,
this.alignment = Alignment.bottomCenter,
this.animationBuilder,
this.padding,
this.onDismiss,
this.semanticsLabel,
}) : super(key: key);