add method

Future<void> add(
  1. String text
)

Implementation

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