Future<void> add(String text) async { if (!this._validate(text)) return; _histories.addByText(text); await _save(); this.hide(); }