show method

void show()

Shows a custom popup with a CircularProgressIndicator

Implementation

void show() {
  if (!_showing) {
    _showing = true;
    AtLocationNotificationListener()
        .navKey
        .currentState!
        .push(CustomPopupRoutes(
            pageBuilder: (_, __, ___) {
              return const Center(
                child: CircularProgressIndicator(),
              );
            },
            barrierDismissible: false))
        .then((_) {});
  }
}