onError property
An event handler fired whenever an error event occurs in the associated service workers.
Implementation
@override
Stream<ErrorEvent> get onError => _onError ??=
callbackToStream(_delegate, 'onerror', (Object j) => j as ErrorEvent);