showToast function

Future<ExtendedOverlayEntry?> showToast(
  1. String message, {
  2. ToastStyle? style,
  3. IconData? customIcon,
  4. ToastOptions? options,
})

Toast 关闭 closeToast(); 添加 await Toast 关闭后继续执行之后的方法

Implementation

Future<ExtendedOverlayEntry?> showToast(String message,
        {ToastStyle? style, IconData? customIcon, ToastOptions? options}) =>
    Toast(message, options: options, customIcon: customIcon, style: style)
        .show();