existsSync static method

bool existsSync(
  1. String path
)

Synchronously checks whether a Realm exists at path

Implementation

static bool existsSync(String path) {
  try {
    final fileEntity = File(path);
    return fileEntity.existsSync();
  } catch (e) {
    throw RealmException("Error while checking if Realm exists at $path. Error: $e");
  }
}