onFutureError method Null safety

void onFutureError(
  1. dynamic error,
  2. Object? key
)

Function that is called when a future throws an error

Implementation

void onFutureError(dynamic error, Object? key) {}