findKeys method Null safety

Future<List<K>> findKeys(
  1. DatabaseClient databaseClient,
  2. {Finder? finder}
)

Find multiple keys.

Return an empty array if none found.

Implementation

Future<List<K>> findKeys(DatabaseClient databaseClient,
    {Finder? finder}) async {
  final client = getClient(databaseClient);

  var keys = await client
      .getSembastStore(this)
      .txnFindKeys(client.sembastTransaction, finder);
  return keys.cast<K>();
}