I have this function here it gets data from API and stores the data locally and I want to display a percent value like 20% ..... 100% in the splash screen while this function is being executed how can I do that?

  _getCleaningDate(
      {required AppGetCleaningDateEvent event,
      required Emitter<AppState> emit}) async {
    userDataModel = await SQLService.getUserData();
    if (userDataModel == null) {
      print('No User Data');
    }

    if (userDataModel != null) {
      try {
        emit(AppGetCleaningDateLoadingState());
        propertiesModel = null;
        offlineProperties = null;
        bool hasNetwork = await Services.hasNetwork();
        this.hasNetwork = hasNetwork;

        if (hasNetwork) {
          propertiesModel = await Services.getCleaningDate(
              token: userDataModel!.token!,
              cleanday: AvadaTheme.formateCleaningDate(event.dateTime));

          await _syncAllData(event: AppSyncAllDataEvent(), emit: emit);

          offlineProperties = await SQLService.getProperties(
              AvadaTheme.formateCleaningDateFromStored(event.dateTime));

          emit(AppGetCleaningDateSuccessState());
        } else {
          offlineProperties = await SQLService.getProperties(
              AvadaTheme.formateCleaningDateFromStored(event.dateTime));
          emit(AppGetCleaningDateSuccessState());
        }
      } on DioError catch (error) {
        emit(AppGetCleaningDateErrorState(error.message));
      }
    }
  }