getSnapshots method

Future<List<RecordSnapshot<K, V>?>> getSnapshots(
  1. DatabaseClient databaseClient
)

Get all records snapshot.

Implementation

Future<List<RecordSnapshot<K, V>?>> getSnapshots(
  DatabaseClient databaseClient,
) async {
  var client = getClient(databaseClient);

  return snapshotsFromImmutableRecords(
    await client
        .getSembastStore(store)
        .txnGetImmutableRecords(client.sembastTransaction, this),
  );
}