Called for every update. current is the sequence so far.
current
final void Function(List<int> current)? onUpdate;