showActivityIndicator method

void showActivityIndicator({
  1. BuildContext? context,
  2. Map? props,
})

Shows the activity indicator.

Implementation

void showActivityIndicator({BuildContext? context, Map? props}) {
  if (activityIndicatorRoute != null) {
    return;
  }

  activityIndicatorRoute = DialogRoute(
    context: context ?? appContext,
    builder: (context) => buildActivityIndicator(context),
    barrierColor: Colors.transparent,
    barrierDismissible: false,
    useSafeArea: false,
  );
  appNavigator.push(activityIndicatorRoute!);
}