addHistory method

Future<void> addHistory(
  1. String line
)

Records line in the history (subject to CommandHistoryStore.add rules) and resets the navigation cursor to the newest entry.

Implementation

Future<void> addHistory(String line) async {
  await _history.add(line);
  _histCursor.reset();
}