JhToast 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
-
showError(BuildContext context, {required String msg, int closeTime = _time})
→ Future
-
失败toast
-
showHorizontalImageText(BuildContext context, {required String msg, required Widget image, int closeTime = _time})
→ Future
-
水平自定义图文toast
-
showHorizontalLoadingText(BuildContext context, {String msg = "加载中..."})
→ _HideCallback
-
水平加载中toast
-
showImageText(BuildContext context, {required String msg, required Widget image, int closeTime = _time})
→ Future
-
自定义图文toast
-
showInfo(BuildContext context, {required String msg, int closeTime = _time})
→ Future
-
警告toast
-
showIOSLoadingText(BuildContext context, {String msg = "加载中..."})
→ _HideCallback
-
iOS加载中toast
-
showLoadingText(BuildContext context, {String msg = "加载中..."})
→ _HideCallback
-
加载中toast
-
showSuccess(BuildContext context, {required String msg, int closeTime = _time})
→ Future
-
成功toast
-
showText(BuildContext context, {required String msg, int closeTime = _time})
→ Future
-
文字toast