ErrorCallback typedef Null safety
Signature for PlatformDispatcher.onError.
If this method returns false, the engine may use some fallback method to provide information about the error.
After calling this method, the process or the VM may terminate. Some severe unhandled errors may not be able to call this method either, such as Dart compilation errors or process terminating errors.
Implementation
typedef ErrorCallback = bool Function(Object exception, StackTrace stackTrace);