onError property

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

An uncaught error of this run. The runner-wide onUncaughtError stays the fallback for runs without it.

Implementation

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