NativeKeyValueStore class final

A database opened for the key-value API of offline_first_core (push_data, get_by_id, ...), the API flutter_local_db 1.x shipped.

Why it lives next to NativeEngine: both call the same library through the same worker isolate; flutter_local_db's LocalDB and dart_db use it without a second copy of that machinery. Answers are the raw JSON strings of that API; their meaning belongs to the caller.

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

call(KeyValueCall call, [String? argument]) → Future<Result<String, DbError>>
Runs call with argument; answers the raw response of the library.
close() → Future<Result<(), DbError>>
Releases the database.
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

Static Methods

open(NativeSymbols symbols, String path) → Future<Result<NativeKeyValueStore, DbError>>
Opens <path>.lmdb with the library of symbols, which must include NativeSymbols.keyValue.