InputHistory class

Input history management.

Constructors

InputHistory({int maxEntries = 500})

Properties

entries List<String>
All entries (oldest first).
no setter
hashCode int
The hash code for this object.
no setterinherited
length int
Number of entries.
no setter
maxEntries int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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 history for entries containing the query.
toString() String
A string representation of this object.
inherited

Operators

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