Function that is called when a future throws an error
void onFutureError(dynamic error, Object? key) {}