onError method

void onError(
  1. void callback(
    1. dynamic err
    )
)

Implementation

void onError(void callback(err)) => _conn.onError.listen((e) {
      callback(e);
    });