addAll method

  1. @override
S addAll(
  1. Iterable<E> events
)
override

Implementation

@override
S addAll(Iterable<E> events) {
  _removeEventsAfterTheCursor();
  final builder = snapshot.toBuilder();
  for (final event in events) {
    _addAndMoveCursor(event);
    event.applyTo(builder);
  }
  return _snapshot = builder.build();
}