replaceAll method

void replaceAll(
  1. Iterable<String> entries
)

Replaces all entries with entries (used when loading from storage), capping to maxEntries.

Implementation

void replaceAll(Iterable<String> entries) {
  _entries
    ..clear()
    ..addAll(entries);
  _cap();
}