onError method

void onError(
  1. EventHandler handler
)

Implementation

void onError(EventHandler handler) {
  on('error', handler);
}