stream<T> static method

ServiceWidget<StreamService<T>> stream<T>(
  1. Stream<T> stream, {
  2. T? initialValue,
})

Implementation

static ServiceWidget<StreamService<T>> stream<T>(Stream<T> stream,
        {T? initialValue}) =>
    ServiceWidget(
        init: (widget) => StreamService(widget,
            stream: stream, initialValue: initialValue));