addAll method

Future<void> addAll(
  1. Iterable<T> annotations
)

Adds multiple annotations (faster than adding one-by-one).

Implementation

Future<void> addAll(Iterable<T> annotations) async {
  for (final a in annotations) {
    _idToAnnotation[a.id] = a;
  }
  await _setAll();
}