CustomToast class
CustomToast Toast 组件
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
closeAllLoading(
) → void - 关闭全部 Loading
-
showLoading(
{String? description, int? duration}) → void - 显示 Loading
-
showNotification(
{ToastBuilder? leading, ToastBuilder? title, ToastBuilder? subtitle, ToastBuilder? trailing, WrapAnimation? wrapAnimation, WrapAnimation? wrapToastAnimation, GestureTapCallback? onTap, Color? backgroundColor, double? borderRadius, GestureLongPressCallback? onLongPress, Alignment? align, BackButtonBehavior? backButtonBehavior, Duration? duration, Duration? animationDuration, Duration? animationReverseDuration, EdgeInsetsGeometry? contentPadding, EdgeInsetsGeometry? margin, VoidCallback? onClose, bool crossPage = true, bool onlyOne = true, bool enableSlideOff = true}) → void - 显示通知
-
showNotificationError(
{required String title, String? subtitle, GestureTapCallback? onTap, bool crossPage = true}) → void - 显示错误通知
-
showNotificationSuccess(
{required String title, String? subtitle, GestureTapCallback? onTap}) → void - 显示成功通知
-
showNotificationWarn(
{required String title, String? subtitle, GestureTapCallback? onTap}) → void - 显示警告通知
-
showText(
String text, {Duration? duration = const Duration(seconds: 2)}) → void - 显示文本