showWidget method

void showWidget({
  1. required Widget child,
  2. ToastPosition? position,
  3. Duration? duration,
  4. VoidCallback? onDismiss,
  5. bool? handleTouch,
})

显示组件toast

Implementation

void showWidget(
    {required Widget child,
    ToastPosition? position,
    Duration? duration,
    VoidCallback? onDismiss,
    bool? handleTouch}) {
  showToastWidget(child, position: position, duration: duration, onDismiss: onDismiss, handleTouch: handleTouch);
}