onError property

Stream<ErrorEvent> get onError

An event handler fired whenever an error event occurs in the associated service workers.

Implementation

Stream<ErrorEvent> get onError => _onError ??=
    callbackToStream(_delegate, 'onerror', (Object j) => j as ErrorEvent);