DVRecordShape class

A collection: its name, the field that identifies a record, and the fields a record has.

Constructors

DVRecordShape({required String collection, String? key, required Map<String, DVFieldType> fields, List<DVRecordIndex> indexes = const <DVRecordIndex>[]})
const

Properties

collection → String
final
fields → Map<String, DVFieldType>
Every field, the key included, with how it is stored.
final
hashCode → int
The hash code for this object.
no setterinherited
indexes → List<DVRecordIndex>
The indexes the collection asks its engine for, beyond its key. An engine that indexes on its own, or has nothing to ask for, ignores them; a unique one is also a rule the caller checks, so a collection whose values already repeat still refuses the next repeat.
final
key → String?
The field no two records share, or null for a collection such as a log where no one field identifies a record.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited