Skip to content

IterableSignalMixin

IterableSignalMixin is a mixin for a Signal that adds reactive methods for Iterable.

class MySignal extends Signal<Iterable<int>> with IterableSignalMixin<int> {
MySignal(Iterable<int> value) : super(value);
}
void main() {
final signal = MySignal([1, 2, 3]);
effect(() {
print(signal.length);
});
}