add method

  1. @override
void add(
  1. String entry
)

Records entry, skipping blank lines and consecutive duplicates, then persists. Storage failures are swallowed so the interactive session is never interrupted by a write error.

Implementation

@override
void add(String entry) {
  if (_buffer.add(entry)) _persist();
}