HandleUncaughtErrorHandler typedef Null safety
The type of a custom Zone.handleUncaughtError implementation function.
Receives the Zone that the handler was registered on as
a delegate forwarding to the handlers of
self's parent zone as
and the current zone where the error was uncaught as
which will have
self as a parent zone.
stackTrace are the error and stack trace that
was uncaught in
typedef HandleUncaughtErrorHandler = void Function(Zone self,
ZoneDelegate parent, Zone zone, Object error, StackTrace stackTrace);