onError method

void onError(
  1. Stream stream,
  2. dynamic error,
  3. StackTrace stackTrace
)

Invoked on stream errors with the error object and possibly a stack trace.

Implementation

void onError(Stream stream, dynamic error, StackTrace stackTrace) {}