showWidget static method

dynamic showWidget({
  1. required Widget child,
  2. Duration? duration,
  3. ToastPosition? position,
  4. VoidCallback? onDismiss,
  5. bool? dismissOtherToast,
  6. TextDirection? textDirection,
  7. bool? handleTouch,
  8. OKToastAnimationBuilder? animationBuilder,
  9. Duration? animationDuration,
  10. Curve? animationCurve,
})

自定义Toast

Implementation

static showWidget({
  required Widget child,
  Duration? duration,
  ToastPosition? position,
  VoidCallback? onDismiss,
  bool? dismissOtherToast,
  TextDirection? textDirection,
  bool? handleTouch,
  OKToastAnimationBuilder? animationBuilder,
  Duration? animationDuration,
  Curve? animationCurve,
}) {
  showToastWidget(
    child,
    duration: duration,
    position: position,
    onDismiss: onDismiss,
    textDirection: textDirection,
    handleTouch: handleTouch,
    dismissOtherToast: dismissOtherToast,
    animationDuration: animationDuration,
    animationBuilder: animationBuilder,
    animationCurve: animationCurve,
  );
}