sendKey method
Sends a KeyMsg for the given character through the Program pipeline
and captures the resulting view.
tester.sendKey('+');
expect(tester.find.text('count: 1'), isTrue);
Implementation
void sendKey(String char) {
_ensureRunning();
_program!.send(
KeyMsg(
terminal_keys.Key(terminal_keys.KeyType.runes, runes: char.codeUnits),
),
);
_syncView();
}