NarrativeEngine constructor

NarrativeEngine({
  1. ValueChanged<ProcessingStatus>? onStatusChange,
  2. ValueChanged<List<BaseNarrativeModel>>? onSentencesChanged,
  3. ValueChanged<int>? onProcessingIndexChanged,
  4. NarrativeInterpreter? interpreter,
})

Constructor with optional status change and sentences changed callbacks.

Implementation

NarrativeEngine({
  this.onStatusChange,
  this.onSentencesChanged,
  this.onProcessingIndexChanged,
  this.interpreter,
});