ToastUtils class
Constructors
- ToastUtils()
-
factory
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
-
show(
String msg, {ToastGravity gravity = ToastGravity.BOTTOM, ToastDuration duration = ToastDuration.LONG}) → void -
显示toast提示
msg
提示内容gravity
显示位置(即对齐方式)duration
显示 -
showNative(
String msg) → void - 显示原生消息
-
showWidget(
{required Widget child, ToastPosition? position, Duration? duration, VoidCallback? onDismiss, bool? handleTouch}) → void - 显示组件toast
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → ToastUtils
-
no setter