Single<T>.value constructor

Single<T>.value(
  1. T value
)

Creates a Single which emits a single data event of value before completing.

See Stream.value.

Implementation

factory Single.value(T value) => Single.safe(Stream.value(value));