onError property

void Function(Object error, StackTrace? stackTrace)? onError
final

Called when an error occurs during the sequence. If null, it will call Logger.severe instead.

Implementation

final void Function(Object error, StackTrace? stackTrace)? onError;