CommandHistoryBuffer constructor
Creates a buffer seeded with entries (capped to maxEntries).
Implementation
CommandHistoryBuffer({List<String>? entries, this.maxEntries = 1000})
: _entries = _capped(entries ?? const <String>[], maxEntries);
Creates a buffer seeded with entries (capped to maxEntries).
CommandHistoryBuffer({List<String>? entries, this.maxEntries = 1000})
: _entries = _capped(entries ?? const <String>[], maxEntries);