ToastUtil class
Toast 显示工具类
Toast util
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
-
showCenter(
String? msg) → dynamic -
showError(
String? msg) → dynamic -
showMsg(
String? msg, {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 - 通用文本显示
-
showWidget(
{required Widget child, Duration? duration, ToastPosition? position, VoidCallback? onDismiss, bool? dismissOtherToast, TextDirection? textDirection, bool? handleTouch, OKToastAnimationBuilder? animationBuilder, Duration? animationDuration, Curve? animationCurve}) → dynamic - 自定义Toast