checkObjectsExistForEventually function

Future<bool> checkObjectsExistForEventually()

Implementation

Future<bool> checkObjectsExistForEventually() async {
  // preparation ParseCoreData
  final CoreStore coreStore = ParseCoreData().getStore();

  List<String>? listSaves = await coreStore.getStringList(keyParseStoreObjects);

  if (listSaves != null) {
    if (listSaves.isNotEmpty) {
      return true;
    }
  }

  List<String>? listDeletes =
      await coreStore.getStringList(keyParseStoreDeletes);

  if (listDeletes != null) {
    if (listDeletes.isNotEmpty) {
      return true;
    }
  }

  return false;
}