Kooza class abstract

Constructors

Kooza()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() Future<void>
collectionExists(String collection) bool
Checks if a speficis collection exists.
deleteDoc(String collection, String docId) Future<void>
deleteKey(String key) Future<void>
docExists(String collection, String docId) bool
Checks if the document with the assigned docId is available in the given collection
fetchBool(String key) Future<bool?>
Asynchronously reads the stored boolean with the given key. If no boolean value is saved, the returned value will be null.
fetchDoc(String collection, String docId) Future<Map<String, dynamic>?>
fetchDocs(String collection) Future<List<Map<String, dynamic>>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setBool(String key, bool? value, {Duration? ttl}) Future<void>
Saves the bool value in memory with the assigned key. Use ttl to determine how long should the value remain in memory. If no ttl is null, the value will permanently be stored in the device memory with the assigned key.
setDoc(String collection, Map<String, dynamic> value, {String? docId, String docIdKey = 'id', Duration? ttl}) Future<String>
Saves the Map<String, dynamic> value in memory with the assigned key. Use ttl to determine how long should the value remain in memory. If ttl is null, the value will permanently be stored in the device memory with the assigned key.
setDouble(String key, double? value, {Duration? ttl}) Future<void>
Saves the double value in memory with the assigned key. Use ttl to determine how long should the value remain in memory. If ttl is null, the value will permanently be stored in the device memory with the assigned key.
setInt(String key, int? value, {Duration? ttl}) Future<void>
Saves the int value in memory with the assigned key. Use ttl to determine how long should the value remain in memory. If ttl is null, the value will permanently be stored in the device memory with the assigned key.
setMap(String key, Map? value, {Duration? ttl}) Future<void>
Saves the int value in memory with the assigned key. Use ttl to determine how long should the value remain in memory. If ttl is null, the value will permanently be stored in the device memory with the assigned key.
setString(String key, String? value, {Duration? ttl}) Future<void>
Saves the String value in memory with the assigned key. Use ttl to determine how long should the value remain in memory. If ttl is null, the value will permanently be stored in the device memory with the assigned key.
streamBool(String key) Stream<bool?>
Reactively reads the stored boolean with the given key. If no boolean value is saved, the returned value will be null.
streamDoc(String collection, String docId) Stream<Map<String, dynamic>?>
streamDocs(String collection) Stream<List<Map<String, dynamic>>>
streamDouble(String key) Stream<double?>
Reactively reads the stored double with the given key. If no boolean value is saved, the returned value will be null.
streamInt(String key) Stream<int?>
Reactively reads the stored int with the given key. If no boolean value is saved, the returned value will be null.
streamMap(String key) Stream<Map<String, dynamic>?>
Reactively reads the stored Map<String,dynamic> with the given key. If no boolean value is saved, the returned value will be null.
streamString(String key) Stream<String?>
Reactively reads the stored String with the given key. If no boolean value is saved, the returned value will be null.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

init(String dbName, {String path = 'kooza'}) Future<Kooza>
Initializes an instance of Kooza. Please remember to close it when you are not using it.