callback<T> method

void callback<T>(
  1. T selectFunc(),
  2. void effectFunc(
    1. T? value
    ), {
  3. bool filter()?,
})

Used to assign effect functions that will react to the reactivity of the declared Atom, similar to the rxObserver function.

Implementation

void callback<T>(
  T Function() selectFunc,
  void Function(T? value) effectFunc, {
  bool Function()? filter,
}) {
  return RxRoot._callback(this, selectFunc, effectFunc, filter: filter);
}