onError property

void Function(Object error, StackTrace stackTrace)? onError
final

Receives a diagnostic message when a completion request fails.

Implementation

final void Function(Object error, StackTrace stackTrace)? onError;