ToastUtil class

Constructors

ToastUtil()

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

dismiss() → dynamic
show(String message, {Duration? duration}) → dynamic
showError(String message, {Duration? duration}) → void
showLoading({bool clickClose = false, bool allowClick = false, bool ignoreContentClick = false, bool useSafeArea = true, Color backgroundColor = const Color(0x33000000), Duration? duration, Duration? animationDuration, Duration? animationReverseDuration, VoidCallback? onClose}) → CancelFunc
ignoreContentClick 是否忽视ToastContext区域 这个参数如果为true时,用户点击该ToastContext区域时,用户可以的点击事件可以正常到达到Page上 换一句话说就是透明的(即便是Toast背景颜色不是透明),如果为false,则情况反之
showTransparentLoading({bool clickClose = false, bool allowClick = false, bool ignoreContentClick = false}) → CancelFunc