showToast function
Future<ExtendedOverlayEntry?>
showToast(
- String message,
- {ToastStyle? style,
- IconData? customIcon,
- 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();