Loadings class
加载框
Constructors
- Loadings()
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isShowing → bool
-
loading是否显示中
no setter
-
overlayLoadingMap
↔ Map<
String, _OverlayLoadingEntry> -
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dismiss(
{String? overlayKey}) → void -
销毁loading
overlayKey
对应style==LoadingStyle.aloneOverlay loading -
dismissAll(
) → void - 销毁所有loading
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setLoadingsMethodCall(
{required BuildContext context}) → void - 设置loadings回调
-
show(
BuildContext context, {LoadingStyle style = LoadingStyle.overlay, LoadingType type = LoadingType.classic, String overlayKey = '', String? text}) → void -
显示loading
context
widget contextstyle
loading渲染方式type
加载类型(设置该类型显示加载的不同样式)overlayKey
当前style==LoadingStyle.aloneOverlay时,该为必填项用于区分不同loading视图的标识text
显示文本 -
showAutoHidden(
BuildContext context, {LoadingStyle style = LoadingStyle.overlay, LoadingType type = LoadingType.classic, String overlayKey = '', String? text, Duration duration = const Duration(seconds: 2), void complete()?}) → void -
显示loading
context
widget contextstyle
loading渲染方式type
加载类型(设置该类型显示加载的不同样式)overlayKey
当前style==LoadingStyle.aloneOverlay时,该为必填项用于区分不同loading视图的标识text
显示文本 Duration 持续时间complete
完成回调 -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited