resetRealm method

bool resetRealm()

Initiates the client reset process.

Returns true if actions were run successfully, false otherwise.

Implementation

bool resetRealm() {
  if (_app == null) {
    throw RealmException("This `ClientResetError` does not have an `Application` instance.");
  }

  if (originalFilePath == null) {
    throw RealmException("Missing `originalFilePath`");
  }

  return _app.handle.resetRealm(originalFilePath!);
}