Toast constructor

const Toast(
  1. String text, {
  2. Key? key,
  3. ToastIconStyle? iconStyle,
  4. TextStyle? textStyle,
  5. Duration? duration,
  6. Duration? animationDuration,
  7. FlAnimationStyle? animationStyle,
  8. GestureTapCallback? onToastTap,
  9. Color? color,
  10. Axis? direction,
  11. AlignmentGeometry? alignment,
  12. ToastBuilder? builder,
  13. ToastOptions? options,
})

Implementation

const Toast(
  this.text, {
  super.key,
  this.iconStyle,
  this.textStyle,
  this.duration,
  this.animationDuration,
  this.animationStyle,
  this.onToastTap,
  this.color,
  this.direction,
  this.alignment,
  this.builder,
  this.options,
});