showToast method

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

toast 显示

Implementation

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