nextAlt method

  1. @override
bool nextAlt()
override

Implementation

@override
bool nextAlt() {
  final oldCurr = _tree.current!.entry;
  final e = _tree.nextAlt();
  if (e == null) {
    return false;
  }
  _snapshot = snapshot.rebuild((b) => b
    ..update(oldCurr!.undoTo as void Function(
        EventSourcedSnapshotBuilder<S, B, E>))
    ..update(
        e.applyTo as void Function(EventSourcedSnapshotBuilder<S, B, E>)));
  return true;
}