Returns an updated version of the current summary following stream termination.
current
The default implementation returns current as is.
S afterDone(S current) => current;