mediator/global library

Properties

globalAllAspects HashSet<Object>
Return all the aspects that has been registered to the Global Mode.
no setter
globalFrameAspects HashSet<Object>
Return the updated aspects of the Global Mode.
no setter
globalPub Pub
A getter, to return the global pub of the Global Mode.
no setter

Functions

globalBroadcast() → void
Broadcast to all the consumer widgets.
globalConsume(Widget create(), {Key? key}) SubscriberGlobal
Create a comsume widget for the watched variable whose value is used inside the widget, and register it to the host to rebuild it when updating the watched variable.
globalConsumeAll(Widget create(), {Key? key}) Subscriber<Pub>
Create a consumer widget that will be rebuilt whenever any watched variables changes are made.
globalGet<T>({Object? tag}) Rx
Retrieve the watched variable by tag or Type of T
globalHost({required Widget child}) Widget
Create a InheritedModel widget to listen to the watched variables and rebuild related consumer widgets when updating the watched variable.
globalWatch<T>(T v, {Object? tag}) Rx<T>
Create a watched variable from the variable v, a proxy object of the Type of Rx<T>