ToastUtil 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
Static Methods
-
forceShowMessage(String? message, {int duration = 1, bool needCancelOld = false, String? key, ToastGravity gravity = ToastGravity.CENTER})
→ dynamic
-
此方法为 游戏中调用APP的Toast方法/APP提供给游戏调用的方法中,触发toast,
需在游戏中展示
-
showDoing({String? message})
→ dynamic
-
-
showErrorMsg(String? message)
→ dynamic
-
-
showMessage(String? message, {int duration = 1, bool needCancelOld = false, String? key, ToastGravity gravity = ToastGravity.CENTER, bool needForceShow = false})
→ dynamic
-
需在游戏中展示/调用toast请使用 forceShowMessage 方法
-
showMsg(String? message, BuildContext context, {int duration = 1})
→ dynamic
-
-
showNeedH5({String? message})
→ dynamic
-
-
showNeedProduct({String? message})
→ dynamic
-
-
showSubmitSuccessMsg()
→ dynamic
-
-
showTimeoutMsg()
→ dynamic
-
接口请求超时调用这个提示
-
showToastMessage(String message, {int? gravity = old.Toast.center, int? duration, bool needForceShow = false})
→ dynamic
-
因百度键盘导致Fluttertoast库toast无法弹出,故使用Toast
-
showUniqueMessage(String message, {Duration duration = const Duration(seconds: 1), bool needCancelOld = false})
→ dynamic
-