IterableSignalImpl<E> constructor

IterableSignalImpl<E>(
  1. Iterable<E> getter(), {
  2. JoltDebugFn? onDebug,
})

Creates a reactive iterable with the given getter function.

Parameters:

  • getter: Function that computes the iterable value

Example:

final source = Signal([1, 2, 3]);
final doubled = IterableSignal(() => source.value.map((x) => x * 2));

Implementation

IterableSignalImpl(super.getter, {super.onDebug});