globalHost function

Widget globalHost({
  1. required Widget child,
})

Create a InheritedModel widget to listen to the watched variables and rebuild related consumer widgets when updating the watched variable.

Place at the top of the widget tree.

Implementation

Widget globalHost({
  required Widget child,
}) {
  return MultiHost.create(child: child);
}