onChange method
Implementation
void onChange(
void Function(T value) callback, {
bool fireImmediately = false,
DspReg? disposers,
}) {
if (fireImmediately) {
fr(
() {
callback(watch());
},
disposers: disposers,
);
} else {
onChange(
callback.skip(1),
fireImmediately: true,
disposers: disposers,
);
}
}