Add convenience constructor: Stream.single(T value)
#29467
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
core-l
library-async
type-enhancement
A request for a change that isn't a bug
I often find myself returning streams with a single value. A convenience constructor would alleviate the following:
new Stream<T>.fromIterable(<T>[value])
The text was updated successfully, but these errors were encountered: