RecordsRef<K extends Key?, V extends Value?> class abstract

An immutable reference to multiple records

Available extensions

Constructors

RecordsRef()

Properties

hashCode int
The hash code for this object.
no setterinherited
keys List<K>
Record key, null for new record.
no setter
length int

Available on RecordsRef<K, V>, provided by the SembastRecordsRefCommonExtension extension

The number of records referenced.
no setter
length int

Available on RecordsRef<K, V>, provided by the SembastRecordsRefExtension extension

The number of records referenced.
no setter
refs List<RecordRef<K, V>>

Available on RecordsRef<K, V>, provided by the SembastRecordsRefCommonExtension extension

Get all records references.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
store StoreRef<K, V>
Store reference.
no setter

Methods

add(DatabaseClient databaseClient, List<V> values) Future<List<K?>>

Available on RecordsRef<K, V>, provided by the SembastRecordsRefExtension extension

Create records that don't exist.
cast<RK extends Key?, RV extends Value?>() RecordsRef<RK, RV>
Cast if needed.
delete(DatabaseClient databaseClient) Future<List<K?>>

Available on RecordsRef<K, V>, provided by the SembastRecordsRefExtension extension

Delete records
get(DatabaseClient client) Future<List<V?>>

Available on RecordsRef<K, V>, provided by the SembastRecordsRefExtension extension

Get all records values.
getSnapshots(DatabaseClient databaseClient) Future<List<RecordSnapshot<K, V>?>>

Available on RecordsRef<K, V>, provided by the SembastRecordsRefExtension extension

Get all records snapshot.
getSnapshotsSync(DatabaseClient databaseClient) List<RecordSnapshot<K, V>?>

Available on RecordsRef<K, V>, provided by the SembastRecordsRefSyncExtension extension

Get all records snapshot synchronously.
getSync(DatabaseClient client) List<V?>

Available on RecordsRef<K, V>, provided by the SembastRecordsRefSyncExtension extension

Get all records values synchronously.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onSnapshots(Database database) Stream<List<RecordSnapshot<K, V>?>>

Available on RecordsRef<K, V>, provided by the SembastRecordsRefExtension extension

Get a stream of a record snapshots from the database.
onSnapshotsSync(Database database) Stream<List<RecordSnapshot<K, V>?>>

Available on RecordsRef<K, V>, provided by the SembastRecordsRefSyncExtension extension

Get a stream of a record snapshots from the database.
put(DatabaseClient databaseClient, List<V> values, {bool? merge}) Future<List<V>>

Available on RecordsRef<K, V>, provided by the SembastRecordsRefExtension extension

Save multiple records, creating the one needed.
toString() String
A string representation of this object.
inherited
update(DatabaseClient databaseClient, List<V> values) Future<List<V?>>

Available on RecordsRef<K, V>, provided by the SembastRecordsRefExtension extension

Update multiple records.

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](int index) RecordRef<K, V>

Available on RecordsRef<K, V>, provided by the SembastRecordsRefCommonExtension extension

Record ref at a given index.