addByText method
Implementation
void addByText(String text) {
if (!this._validate(text)) return;
if (withoutLockItems.length >= this._limit!)
this._items!.removeAt(withoutLockItems.length - 1);
this._items!.insert(0, (InputHistoryItem(text)));
}