configLoading static method
void
configLoading({
- Duration displayDuration = const Duration(milliseconds: 2000),
- EasyLoadingIndicatorType indicatorType = EasyLoadingIndicatorType.fadingCircle,
- EasyLoadingStyle loadingStyle = EasyLoadingStyle.dark,
- double indicatorSize = 45.0,
- double radius = 10.0,
- Color progressColor = Colors.yellow,
- Color backgroundColor = Colors.green,
- Color indicatorColor = Colors.yellow,
- Color textColor = Colors.yellow,
- Color maskColor = Colors.black54,
- bool userInteractions = true,
- bool dismissOnTap = false,
- EasyLoadingMaskType maskType = EasyLoadingMaskType.clear,
- EasyLoadingAnimation? customAnimation,
Implementation
static void configLoading({
Duration displayDuration = const Duration(milliseconds: 2000),
EasyLoadingIndicatorType indicatorType =
EasyLoadingIndicatorType.fadingCircle,
EasyLoadingStyle loadingStyle = EasyLoadingStyle.dark,
double indicatorSize = 45.0,
double radius = 10.0,
Color progressColor = Colors.yellow,
Color backgroundColor = Colors.green,
Color indicatorColor = Colors.yellow,
Color textColor = Colors.yellow,
Color maskColor = Colors.black54,
bool userInteractions = true,
bool dismissOnTap = false,
EasyLoadingMaskType maskType = EasyLoadingMaskType.clear,
EasyLoadingAnimation? customAnimation,
}) {
EasyLoading.instance
..displayDuration = displayDuration
..indicatorType = indicatorType
..loadingStyle = loadingStyle
..indicatorSize = indicatorSize
..radius = radius
..progressColor = progressColor
..backgroundColor = backgroundColor
..indicatorColor = indicatorColor
..textColor = textColor
..maskColor = maskColor
..userInteractions = userInteractions
..dismissOnTap = dismissOnTap
..maskType = maskType
..customAnimation = customAnimation;
}