MapCrdtBase constructor
Implementation
MapCrdtBase(Iterable<String> tables) : tables = tables.toSet() {
final nodeId = isEmpty
? generateNodeId()
: tables
.map(getRecords)
.firstWhere((e) => e.isNotEmpty)
.values
.first
.modified
.nodeId;
// Seed canonical time with a node id, needed for [getLastModified]
canonicalTime = Hlc.zero(nodeId);
canonicalTime = getLastModified();
}