TerminalScriptStep.key constructor

const TerminalScriptStep.key(
  1. KeyEventType key, [
  2. String? char
])

Creates a step that queues key through MockTerminalInput.queueKey.

Implementation

const TerminalScriptStep.key(KeyEventType this.key, [this.char])
    : kind = TerminalScriptStepKind.key,
      text = null;