just<T> function

Observable<T> just<T>(
  1. T value, {
  2. Scheduler? scheduler,
})

An Observable with a single element.

Implementation

Observable<T> just<T>(T value, {Scheduler? scheduler}) =>
    JustObservable<T>(value, scheduler ?? const ImmediateScheduler());