Injected<T>.stream constructor
Injected<T>.stream ({
- required Stream<
T> creator(), - T? initialState,
- SideEffects<
T> ? sideEffects, - StateInterceptor<
T> ? stateInterceptor, - bool autoDisposeWhenNotUsed = true,
- String? debugPrintWhenNotifiedPreMessage,
- Object? toDebugString(
- T?
- int undoStackLength = 0,
- PersistState<
T> persist()?, - DependsOn<
T> ? dependsOn, - Object? watch(
- 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,
);