TDToast class

Constructors

TDToast()

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

dismissLoading() → void
关闭加载Toast
showFail(String? text, {IconTextDirection direction = IconTextDirection.horizontal, required BuildContext context, Duration duration = TDToast._defaultDisPlayDuration}) → void
失败提示Toast
showIconText(String? text, {IconData? icon, IconTextDirection direction = IconTextDirection.horizontal, required BuildContext context, Duration duration = TDToast._defaultDisPlayDuration}) → void
带图标的Toast
showLoading({required BuildContext context, String? text, Duration duration = TDToast._defaultDisPlayDuration}) → void
带文案的加载Toast
showLoadingWithoutText({required BuildContext context, String? text, Duration duration = TDToast._defaultDisPlayDuration}) → void
不带文案的加载Toast
showSuccess(String? text, {IconTextDirection direction = IconTextDirection.horizontal, required BuildContext context, Duration duration = TDToast._defaultDisPlayDuration}) → void
成功提示Toast
showText(String? text, {required BuildContext context, Duration duration = TDToast._defaultDisPlayDuration}) → void
普通文本Toast
showWarning(String? text, {IconTextDirection direction = IconTextDirection.horizontal, required BuildContext context, Duration duration = TDToast._defaultDisPlayDuration}) → void
警告Toast