afterError method Null safety

S afterError(
  1. S current,
  2. Object error,
  3. StackTrace stackTrace
)

Returns an updated version of the current summary following an error with a stack trace.

The default implementation returns current as is.

Implementation

S afterError(S current, Object error, StackTrace stackTrace) => current;