globalConsume function

SubscriberAuto globalConsume(
  1. Widget create(), {
  2. Key? key,
})

A helper function to create a widget for the watched variable, and register it to the host to rebuild the widget when updating.

Implementation

SubscriberAuto globalConsume(Widget Function() create, {Key? key}) {
  return SubscriberAuto(key: key, create: create);
}