addEffect method
Adds an effect function that gets called whenever the value changes.
Implementation
void addEffect(Function(Snapshot<T>) effect) {
stream.listen((snapshot) {
effect(snapshot);
});
}
Adds an effect function that gets called whenever the value changes.
void addEffect(Function(Snapshot<T>) effect) {
stream.listen((snapshot) {
effect(snapshot);
});
}