throwError function
An Observable that emits no items and immediately throws an error.
Implementation
Observable<Never> throwError(Object error,
{StackTrace? stackTrace, Scheduler? scheduler}) =>
ThrowErrorObservable(error, stackTrace ?? StackTrace.current,
scheduler ?? const ImmediateScheduler());