addAll method

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

Adds a multiple annotations to the map. This much faster than calling add multiple times

Implementation

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