globalHost function
Create a InheritedModel widget to listen to the watched variables and rebuild related consume widgets when updating the watched variable.
Place at the top of the widget tree.
Implementation
Widget globalHost({
required Widget child,
}) {
return Host(child: child);
}