InputHistory class
Input history management.
Constructors
- InputHistory({int maxEntries = 500})
Properties
Methods
-
add(
String input) → void - Add a new entry. Resets navigation index. Deduplicates consecutive entries.
-
clear(
) → void - Clear all history.
-
next(
) → String? - Navigate to next entry (newer). Returns null if past the end (back to current input).
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
previous(
) → String? - Navigate to previous entry (older). Returns null if at the beginning.
-
restoreCurrentInput(
) → String? - Restore the saved current input.
-
saveCurrentInput(
String input) → void - Save the current (unsaved) input before navigating history.
-
search(
String query) → List< String> - Search history for entries containing the query.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited