mediator
library
Extensions
-
RxExtension
on T
-
Helper for all others type to Rx object.
Functions
-
globalBroadcast()
→ void
-
Broadcast to all the globalConsume widgets.
-
globalConsume(Widget create(), {Key? key})
→ SubscriberAuto
-
A helper function to create a widget for the watched variable,
and register it to the host to rebuild the widget when updating.
-
globalConsumeAll(Widget create(), {Key? key})
→ Subscriber
-
Create a 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
-
globalHost : Create a InheritedModel To register the Host at
the top of the widget tree.
-
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>
-
ifRxAutoAspectEmpty(List<Object> rxAutoAspectList)
→ bool
-
Assert rx auto aspect is not empty, i.e. rx automatic aspect is actived.
-
ifTagMaximum(int rxTagCounter)
→ bool
-
rx_impl: Assert tag not to exceed maximum.
-
shouldExists(Object? obj, String errmsg)
→ bool
-
Assert if obj exists, otherwise throw error message.
-
shouldNull(Object? obj, String errmsg)
→ bool
-
Assert if obj not exists, otherwise throw error message.