CommandHistoryStore class abstract interface

A persistent command history a LineEditor can record into and navigate.

The storage-agnostic seam between the editor and a concrete history: the CLI implements it with a file-backed CommandHistory, the web client with a localStorage-backed one. add may be synchronous (web) or asynchronous (file), so it returns FutureOr<void>.

Implementers

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(String entry) FutureOr<void>
Records entry (subject to the buffer's add rules) and persists it.
cursor() HistoryCursor
A fresh Up/Down navigation cursor over the current entries.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited