CommandHistory.inMemory constructor

CommandHistory.inMemory({
  1. List<String>? entries,
  2. int maxEntries = 1000,
})

An in-memory history with no backing file (used by tests).

Implementation

factory CommandHistory.inMemory({
  List<String>? entries,
  int maxEntries = 1000,
}) => CommandHistory._(
  CommandHistoryBuffer(entries: entries, maxEntries: maxEntries),
  null,
);