KnowledgeWriter constructor

KnowledgeWriter({
  1. WayfinderProfileResolver? resolver,
  2. ProfileValidator validator = const ProfileValidator(),
  3. KnowledgeAssessor assess = assessOnCallingIsolate,
  4. DateTime clock() = DateTime.now,
})

resolver selects the bundle's Profile when prepare is given no selection; validator generates the Profile's indexes and judges the base and the candidate; assess runs that judgment, by default on the calling isolate; clock dates stamps and log entries.

Implementation

KnowledgeWriter({
  this.resolver,
  this.validator = const ProfileValidator(),
  KnowledgeAssessor assess = assessOnCallingIsolate,
  DateTime Function() clock = DateTime.now,
}) : _assess = assess,
     _clock = clock;