broadcast<T> static method
Sends value
to global object stream.
Subs with same key
and value
type will be notified.
store
- stores value
for future subs and notifies them immediately after subscribe.
Returns number of notified subs.
Implementation
static void broadcast<T>({dynamic key, dynamic value, bool store = false}) =>
Control.broadcast.broadcast<T>(key: key, value: value, store: store);