list<T> static method

FlowState<List<T?>> list<T>(
  1. List<FlowState<T?>> states
)

Implementation

static FlowState<List<T?>> list<T>(List<FlowState<T?>> states) {
  final combinedStream = Rx.combineLatestList(states.map((state) => state.stream).toList());
  final initialCombinedValue = states.map((state) => state.current).toList();
  return FlowState<List<T?>>(initialCombinedValue).._subject.addStream(combinedStream);
}