onPlatformError property

void Function(Object error, StackTrace stack)? onPlatformError
final

Function which should additionally be called when an error is caught using the PlatformDispatcher.instance.onError mechanism. Useful if other packages also need to override this behaviour.

Implementation

final void Function(Object error, StackTrace stack)? onPlatformError;