onError method

void onError(
  1. dynamic error
)

Called when an error is fired in the stream

Implementation

void onError(error) {}