where method
Only call callback when value meets condition
Implementation
void where(
bool Function(T value) condition, void Function(T value) callback) {
void listener() {
if (condition(value)) {
callback(value);
}
}
addListener(listener);
}