showWidget static method
dynamic
showWidget({
- required Widget child,
- Duration? duration,
- ToastPosition? position,
- VoidCallback? onDismiss,
- bool? dismissOtherToast,
- TextDirection? textDirection,
- bool? handleTouch,
- OKToastAnimationBuilder? animationBuilder,
- Duration? animationDuration,
- 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,
);
}