oktoast library Null safety

Classes

BaseAnimationBuilder
OffsetAnimationBuilder
OKToast
OpacityAnimationBuilder
ToastFuture
Use the dismiss to dismiss toast.
ToastPosition

Functions

dismissAllToast({bool showAnim = false}) → void
showToast(String msg, {BuildContext? context, Duration? duration, ToastPosition? position, TextStyle? textStyle, EdgeInsetsGeometry? textPadding, Color? backgroundColor, double? radius, VoidCallback? onDismiss, TextDirection? textDirection, bool? dismissOtherToast, TextAlign? textAlign, OKToastAnimationBuilder? animationBuilder, Duration? animationDuration, Curve? animationCurve, BoxConstraints? constraints, EdgeInsetsGeometry? margin = const EdgeInsets.all(50)}) ToastFuture
Show toast with msg,
showToastWidget(Widget widget, {BuildContext? context, Duration? duration, ToastPosition? position, VoidCallback? onDismiss, bool? dismissOtherToast, TextDirection? textDirection, bool? handleTouch, OKToastAnimationBuilder? animationBuilder, Duration? animationDuration, Curve? animationCurve}) ToastFuture
Show widget with oktoast.

Typedefs

OKToastAnimationBuilder = Widget Function(BuildContext context, Widget child, AnimationController controller, double percent)