ToastUtils class
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
-
error(
String msg, {Duration duration = DEFAULT_TOAST_DURATION}) → void -
init(
Widget child) → dynamic - 全局初始化Toast配置, child为MaterialApp
-
success(
String msg, {Duration duration = DEFAULT_TOAST_DURATION}) → void -
toast(
String msg, {Duration duration = DEFAULT_TOAST_DURATION, Color color = DEFAULT_TOAST_COLOR}) → void -
waring(
String msg, {Duration duration = DEFAULT_TOAST_DURATION}) → void