Observer<T> constructor

Observer<T>(
  1. IObservable<T> observable,
  2. Widget? builder(
    1. T v
    ), {
  3. Key? key,
})

Implementation

factory Observer(
  IObservable<T> observable,
  Widget? Function(T v) builder, {
  Key? key,
}) {
  return Observer.context(observable, (context, v) {
    return builder(v);
  }, key: key);
}