globalConsumeAll function

Subscriber<Pub> globalConsumeAll(
  1. Widget create(), {
  2. Key? key,
})

Create a consumer widget that will be rebuilt whenever any watched variables changes are made.

Implementation

Subscriber globalConsumeAll(Widget Function() create, {Key? key}) {
  wrapFn(BuildContext _, Pub __) => create();
  return Subscriber<Pub>(key: key, create: wrapFn);
}