EasyLoading class




backgroundColor Color
background color of loading, only used for EasyLoadingStyle.custom.
read / write
contentPadding EdgeInsets
content padding of loading.
read / write
context BuildContext
read / write
displayDuration ↔ Duration
display duration of showSuccess showError showInfo showToast, default 2000ms.
read / write
errorWidget Widget
error widget of loading
read / write
fontSize ↔ double
fontSize of loading, default 15.0.
read / write
indicatorColor Color
color of loading indicator, only used for EasyLoadingStyle.custom.
read / write
indicatorSize ↔ double
size of indicator, default 40.0.
read / write
indicatorType EasyLoadingIndicatorType
loading indicator type, default EasyLoadingIndicatorType.fadingCircle.
read / write
infoWidget Widget
info widget of loading
read / write
key GlobalKey<LoadingContainerState>
lineWidth ↔ double
width of indicator, default 4.0, only used for EasyLoadingIndicatorType.ring, EasyLoadingIndicatorType.dualRing.
read / write
loadingStyle EasyLoadingStyle
loading style, default EasyLoadingStyle.dark.
read / write
maskColor Color
mask color of loading, only used for EasyLoadingMaskType.custom.
read / write
maskType EasyLoadingMaskType
loading mask type, default EasyLoadingMaskType.none.
read / write
overlayEntry OverlayEntry
progress Widget
progressColor Color
progress color of loading, only used for EasyLoadingStyle.custom.
read / write
progressKey GlobalKey<ProgressState>
progressWidth ↔ double
width of progress indicator, default 2.0.
read / write
radius ↔ double
radius of loading, default 5.0.
read / write
successWidget Widget
success widget of loading
read / write
textAlign TextAlign
textAlign of status, default TextAlign.center.
read / write
textColor Color
color of loading status, only used for EasyLoadingStyle.custom.
read / write
textPadding EdgeInsets
padding of status.
read / write
timer → Timer
userInteractions ↔ bool
should allow user interactions while loading is displayed.
read / write
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
toString() → String
Returns a string representation of this object.


operator ==(dynamic other) → bool
The equality operator.

Static Properties

instance EasyLoading

Static Methods

dismiss({bool animation: true}) → void
dismiss loading
show({String status, Widget indicator}) → void
show loading with status indicator custom indicator
showError(String status, {Duration duration}) → void
showError status duration
showInfo(String status, {Duration duration}) → void
showInfo status duration
showProgress(double value, {String status}) → void
show progress with value status, value should be 0.0 ~ 1.0.
showSuccess(String status, {Duration duration}) → void
showSuccess status duration
showToast(String status, {Duration duration}) → void
showToast status duration