MapCrdt constructor

MapCrdt(
  1. Iterable<String> tables
)

Instantiate a MapCrdt object with empty tables.

Implementation

MapCrdt(Iterable<String> tables)
    : _recordMaps = {for (final table in tables.toSet()) table: {}},
      _changeControllers = {
        for (final table in tables.toSet())
          table: StreamController.broadcast()
      },
      assert(tables.isNotEmpty),
      super(tables);