loading method

void loading({
  1. Widget? widget,
  2. Duration? duration,
  3. bool opaque = false,
  4. bool maintainState = false,
  5. bool replace = true,
  6. String message = "",
  7. bool passTouch = false,
  8. Color maskColor = OverlayConst.maskColor,
  9. Color frameColor = Colors.transparent,
  10. TextStyle textStyle = OverlayConst.textStyle,
  11. double progressSize = 13,
  12. Color progressColor = Colors.white,
  13. double progressStrokeWidth = 2,
  14. Color progressBackgroundColor = Colors.transparent,
})

Implementation

void loading({
  Widget? widget,
  Duration? duration,
  bool opaque = false,
  bool maintainState = false,
  bool replace = true,
  String message = "",
  bool passTouch = false,
  Color maskColor = OverlayConst.maskColor,
  Color frameColor = Colors.transparent,
  TextStyle textStyle = OverlayConst.textStyle,
  double progressSize = 13,
  Color progressColor = Colors.white,
  double progressStrokeWidth = 2,
  Color progressBackgroundColor = Colors.transparent,
}) {
  var widgetView = widget;
  if (widget == null) {
    widgetView = buildDefLoadingOverlay(
      context,
      message: message,
      passTouch: passTouch,
      maskColor: maskColor,
      frameColor: frameColor,
      textStyle: textStyle,
      progressSize: progressSize,
      progressColor: progressColor,
      progressStrokeWidth: progressStrokeWidth,
      progressBackgroundColor: progressBackgroundColor,
    );
  }
  _loadingTier.show(context, widgetView!,
      duration: duration,
      opaque: opaque,
      maintainState: maintainState,
      replace: replace);
}