HarnCollection constructor

HarnCollection(
  1. String collectionName,
  2. Map<String, dynamic> collection
)

Implementation

HarnCollection(this.collectionName, this.collection)
    : _harnFile = HarnFile() {
  harnCollectionQueue.onComplete(() async {
    Task t = Task("save", () async {
      harnLog.register({"queue": "complete"});
      await _saveCollection();
    });
    saveCollectionQueue.enqueue(t);
  });

  saveCollectionQueue.onComplete(() async {
    harnLog.register({"saveCollectionQueue": "complete"});
  });
}