Toast constructor

const Toast({
  1. Key? key,
  2. required Widget child,
  3. Duration? duration,
  4. Duration? animationDuration = kDefaultToastAnimationDuration,
  5. Duration? reverseAnimationDuration = kDefaultToastAnimationDuration,
  6. AlignmentGeometry? alignment = Alignment.bottomCenter,
  7. ToastAnimationBuilder? animationBuilder,
  8. EdgeInsets? padding,
  9. VoidCallback? onDismiss,
  10. 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);