getSnapshotSync method

RecordSnapshot<K, V>? getSnapshotSync(
  1. DatabaseClient databaseClient
)

Get a record snapshot from the database synchronously.

Implementation

RecordSnapshot<K, V>? getSnapshotSync(DatabaseClient databaseClient) {
  var client = getClient(databaseClient);

  return snapshotFromImmutableRecordOrNull(
    client
        .getSembastStore(store)
        .txnGetImmutableRecordSync(client.sembastTransaction, key),
  );
}