EasyLoading class Null safety

Constructors

EasyLoading()
factory

Properties

animationDuration Duration
animation duration of indicator, default 200ms.
read / write
animationStyle EasyLoadingAnimationStyle
loading animationStyle, default EasyLoadingAnimationStyle.opacity.
read / write
backgroundColor Color?
background color of loading, only used for EasyLoadingStyle.custom.
read / write
boxShadow List<BoxShadow>?
boxShadow of loading, only used for EasyLoadingStyle.custom.
read / write
contentPadding EdgeInsets
content padding of loading.
read / write
customAnimation EasyLoadingAnimation?
loading custom animation, default null.
read / write
dismissOnTap bool?
should dismiss on user tap.
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
hashCode int
The hash code for this object.
read-only, inherited
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
indicatorWidget Widget?
indicator widget of loading
read / write
infoWidget Widget?
info widget of loading
read / write
key GlobalKey<EasyLoadingContainerState>?
read-only
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 ↔ EasyLoadingOverlayEntry?
read / write
progressColor Color?
progress color of loading, only used for EasyLoadingStyle.custom.
read / write
progressKey GlobalKey<EasyLoadingProgressState>?
read-only
progressWidth double
width of progress indicator, default 2.0.
read / write
radius double
radius of loading, default 5.0.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
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
textStyle TextStyle?
textStyle of status, default null.
read / write
toastPosition EasyLoadingToastPosition
toast position, default EasyLoadingToastPosition.center.
read / write
userInteractions bool?
should allow user interactions while loading is displayed.
read / write
w Widget?
read-only

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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 Properties

instance EasyLoading
read-only
isShow bool
read-only

Static Methods

addStatusCallback(EasyLoadingStatusCallback callback) → void
add loading status callback
dismiss({bool animation = true}) Future<void>
dismiss loading
init({TransitionBuilder? builder}) TransitionBuilder
init EasyLoading
removeAllCallbacks() → void
remove all loading status callback
removeCallback(EasyLoadingStatusCallback callback) → void
remove single loading status callback
show({String? status, Widget? indicator, EasyLoadingMaskType? maskType, bool? dismissOnTap}) Future<void>
show loading with status indicator maskType
showError(String status, {Duration? duration, EasyLoadingMaskType? maskType, bool? dismissOnTap}) Future<void>
showError status duration maskType
showInfo(String status, {Duration? duration, EasyLoadingMaskType? maskType, bool? dismissOnTap}) Future<void>
showInfo status duration maskType
showProgress(double value, {String? status, EasyLoadingMaskType? maskType}) Future<void>
show progress with value status maskType, value should be 0.0 ~ 1.0.
showSuccess(String status, {Duration? duration, EasyLoadingMaskType? maskType, bool? dismissOnTap}) Future<void>
showSuccess status duration maskType
showToast(String status, {Duration? duration, EasyLoadingToastPosition? toastPosition, EasyLoadingMaskType? maskType, bool? dismissOnTap}) Future<void>
showToast status duration toastPosition maskType