hive_crdt 1.0.0-pre.5
hive_crdt: ^1.0.0-pre.5 copied to clipboard
A CRDT backed by a Hive store.
example/hive_crdt_example.dart
import 'package:hive_crdt/hive_crdt.dart';
// TODO: Generate id on first launch
const nodeId = 'random_id';
Future<void> main() async {
var crdt = await HiveCrdt.open('test', nodeId);
crdt.put('a', 1);
print(crdt.get('a')); // 1
}