DialogueEvent constructor

const DialogueEvent({
  1. required DialogueEventType type,
  2. String? graphId,
  3. String? nodeTitle,
  4. DialogueLine? line,
  5. List<DialogueChoice>? choices,
  6. int? choiceIndex,
  7. String? commandName,
  8. List<String>? commandArgs,
})

An event of type; fill in the fields that type says apply, leave the rest null.

Implementation

const DialogueEvent({
  required this.type,
  this.graphId,
  this.nodeTitle,
  this.line,
  this.choices,
  this.choiceIndex,
  this.commandName,
  this.commandArgs,
});