LCR class
The class representing a collection within a local database.
Constructors
- LCR({required String key, required LocalDatabase database})
-
Constructor for the LCR class.
const
Properties
- database → LocalDatabase
-
The reference to the local database containing the collection.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Getter to obtain the ID for the next document in the collection.
no setter
- key → String
-
The key or path of the collection.
final
- length → int
-
Getter to obtain the number of documents in the collection.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add(
Data data) → void - Method to add a new document to the collection.
-
delete(
String id) → void - Method to delete a document from the collection.
-
document(
String path) → LDR - Method to get a reference to a document within the collection.
-
get(
) → Iterable< Data> - Method to get all documents in the collection.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
set(
String id, Data data) → void - Method to set data in a specific document within the collection.
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
String id, Data data) → void - Method to update data in a specific document within the collection.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited