crdt library Null safety

Classes

Crdt<K, V>
CrdtJson
Hlc<T>
A Hybrid Logical Clock implementation. This class trades time precision for a guaranteed monotonically increasing clock in distributed systems. Inspiration: https://cse.buffalo.edu/tech-reports/2014-04.pdf
MapCrdt<K, V>
A CRDT backed by a in-memory map. Useful for testing, or for applications which only require temporary datasets.
Record<V>
Stores a value associated with a given HLC

Typedefs

KeyDecoder<K> = K Function(String key)
KeyEncoder<K> = String Function(K key)
NodeIdDecoder = dynamic Function(String nodeId)
ValueDecoder<V> = V Function(String key, dynamic value)
ValueEncoder<K, V> = dynamic Function(K key, V? value)

Exceptions / Errors

ClockDriftException
DuplicateNodeException
OverflowException