configLoading static method

void configLoading({
  1. Duration displayDuration = const Duration(milliseconds: 2000),
  2. EasyLoadingIndicatorType indicatorType = EasyLoadingIndicatorType.fadingCircle,
  3. EasyLoadingStyle loadingStyle = EasyLoadingStyle.dark,
  4. double indicatorSize = 45.0,
  5. double radius = 10.0,
  6. Color progressColor = Colors.yellow,
  7. Color backgroundColor = Colors.green,
  8. Color indicatorColor = Colors.yellow,
  9. Color textColor = Colors.yellow,
  10. Color maskColor = Colors.black54,
  11. bool userInteractions = true,
  12. bool dismissOnTap = false,
  13. EasyLoadingMaskType maskType = EasyLoadingMaskType.clear,
  14. 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;
}