hive_crdt 2.0.4 hive_crdt: ^2.0.4 copied to clipboard
Dart implementation of Conflict-free Replicated Data Types (CRDTs), 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
}