StreamService<T> constructor

StreamService<T>(
  1. InheritedWidget widget, {
  2. required Stream<T> stream,
  3. T? initialValue,
})

Implementation

StreamService(super.widget, {required Stream<T> stream, T? initialValue})
    : _stream = stream,
      _value = initialValue;