Callback if an Error occurs
If this returns false the default error screen is not shown. This functionality can be used to do a custom Widget or Transition
final Future<bool> Function(dynamic)? onError;