toast method

void toast(
  1. String message, {
  2. int duration = 2,
  3. ToastAlignment alignment = ToastAlignment.bottom,
  4. Widget? widget,
})

Implementation

void toast(
  String message, {
  int duration = 2,
  ToastAlignment alignment = ToastAlignment.bottom,
  Widget? widget,
}) {
  if (_toastCall != null) {
    _toastCall!(message,
        duration: duration, alignment: alignment, widget: widget);
  }
}