SignalSelector<T, S> constructor
Implementation
SignalSelector(
this.source,
this.selector, {
String? debugLabel,
}) : super(selector(source.val), debugLabel: debugLabel) {
_subscription = source.stream.listen((value) {
final selected = selector(value);
if (val != selected) {
emit(selected);
}
});
}