ToastUtils class
Created by XieXin on 2020/4/8. 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
-
cancel(
) → Future< bool?> - 取消全部Toast
-
showLong(
String msg, {ToastGravity gravity = ToastGravity.CENTER, Color? backgroundColor, Color textColor = Colors.white, double fontSize = 12.0}) → Future< bool?> - 长Toast
-
showShort(
String msg, {ToastGravity gravity = ToastGravity.CENTER, Color? backgroundColor, Color textColor = Colors.white, double fontSize = 12.0}) → Future< bool?> - 短Toast
-
showToast(
String msg, {Toast toastLength = Toast.LENGTH_SHORT, int timeInSecForIosWeb = 1, ToastGravity gravity = ToastGravity.CENTER, Color? backgroundColor, Color textColor = Colors.white, double fontSize = 12.0}) → Future< bool?> - 自定义Toast