onError abstract method

Future<void> onError(
  1. Object error
)

When an error event is send on the stream, the onError handler is called.

Implementation

Future<void> onError(Object error);