Injected<T>.stream constructor

Injected<T>.stream({
  1. required Stream<T> creator(),
  2. T? initialState,
  3. SideEffects<T>? sideEffects,
  4. StateInterceptor<T>? stateInterceptor,
  5. bool autoDisposeWhenNotUsed = true,
  6. String? debugPrintWhenNotifiedPreMessage,
  7. Object? toDebugString(
    1. T?
    )?,
  8. int undoStackLength = 0,
  9. PersistState<T> persist()?,
  10. DependsOn<T>? dependsOn,
  11. Object? watch(
    1. T? s
    )?,
})

Create an Injected state from stream

Implementation

factory Injected.stream({
  required Stream<T> Function() creator,
  T? initialState,
  SideEffects<T>? sideEffects,
  StateInterceptor<T>? stateInterceptor,
  bool autoDisposeWhenNotUsed = true,
  String? debugPrintWhenNotifiedPreMessage,
  Object? Function(T?)? toDebugString,
  int undoStackLength = 0,
  PersistState<T> Function()? persist,
  DependsOn<T>? dependsOn,
  Object? Function(T? s)? watch,
}) =>
    Injected<T>.generic(
      creator: creator,
      initialState: initialState,
      sideEffects: sideEffects,
      stateInterceptor: stateInterceptor,
      autoDisposeWhenNotUsed: autoDisposeWhenNotUsed,
      debugPrintWhenNotifiedPreMessage: debugPrintWhenNotifiedPreMessage,
      toDebugString: toDebugString,
      undoStackLength: undoStackLength,
      persist: persist,
      dependsOn: dependsOn,
      watch: watch,
    );