Inject<T>.stream constructor

Inject<T>.stream(
  1. Stream<T> creationFutureFunction(), {
  2. dynamic name,
  3. bool isLazy = false,
  4. T? initialValue,
  5. Object? watch(
    1. T?
    )?,
})

Implementation

factory Inject.stream(
  Stream<T> Function() creationFutureFunction, {
  dynamic name,
  bool isLazy = false,
  T? initialValue,
  Object? Function(T?)? watch,
}) {
  return Inject._(
    ReactiveModel.create(
      creator: creationFutureFunction,
      initialState: initialValue,
    ),
    name,
  );
}