RecordsRef<K extends Key?, V extends Value?> class
abstract
An immutable reference to multiple records
- Available extensions
Constructors
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<
The number of records referenced.K, V> , provided by the SembastRecordsRefCommonExtension extensionno setter - length → int
-
Available on RecordsRef<
The number of records referenced.K, V> , provided by the SembastRecordsRefExtension extensionno setter -
refs
→ List<
RecordRef< K, V> > -
Available on RecordsRef<
Get all records references.K, V> , provided by the SembastRecordsRefCommonExtension extensionno 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<
Create records that don't exist.K, V> , provided by the SembastRecordsRefExtension extension -
cast<
RK extends Key?, RV extends Value?> () → RecordsRef< RK, RV> - Cast if needed.
-
delete(
DatabaseClient databaseClient) → Future< List< K?> > -
Available on RecordsRef<
Delete recordsK, V> , provided by the SembastRecordsRefExtension extension -
get(
DatabaseClient client) → Future< List< V?> > -
Available on RecordsRef<
Get all records values.K, V> , provided by the SembastRecordsRefExtension extension -
getSnapshots(
DatabaseClient databaseClient) → Future< List< RecordSnapshot< >K, V> ?> -
Available on RecordsRef<
Get all records snapshot.K, V> , provided by the SembastRecordsRefExtension extension -
getSnapshotsSync(
DatabaseClient databaseClient) → List< RecordSnapshot< K, V> ?> -
Available on RecordsRef<
Get all records snapshot synchronously.K, V> , provided by the SembastRecordsRefSyncExtension extension -
getSync(
DatabaseClient client) → List< V?> -
Available on RecordsRef<
Get all records values synchronously.K, V> , provided by the SembastRecordsRefSyncExtension extension -
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<
Get a stream of a record snapshots from the database.K, V> , provided by the SembastRecordsRefExtension extension -
onSnapshotsSync(
Database database) → Stream< List< RecordSnapshot< >K, V> ?> -
Available on RecordsRef<
Get a stream of a record snapshots from the database.K, V> , provided by the SembastRecordsRefSyncExtension extension -
put(
DatabaseClient databaseClient, List< V> values, {bool? merge}) → Future<List< V> > -
Available on RecordsRef<
Save multiple records, creating the one needed.K, V> , provided by the SembastRecordsRefExtension extension -
toString(
) → String -
A string representation of this object.
inherited
-
update(
DatabaseClient databaseClient, List< V> values) → Future<List< V?> > -
Available on RecordsRef<
Update multiple records.K, V> , provided by the SembastRecordsRefExtension extension
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
int index) → RecordRef< K, V> -
Available on RecordsRef<
Record ref at a given index.K, V> , provided by the SembastRecordsRefCommonExtension extension