broadcast_events

Creator: coderz1093

Last updated:

0 purchases

broadcast_events Image
broadcast_events Images

Languages

Categories

Add to Cart

Description:

broadcast events

broadcast_events #
Enables you to broadcast events in your app.
Usage #
/// Subscription Example
BroadcastEvents().subscribe<String>('CUSTOM_EVENT', (message) {
print(message);
});

BroadcastEvents()
.publish<String>('CUSTOM_EVENT', arguments: 'Hello Subscribers');

/// Unsubscription Example
final _handler = (int code) => print('The Code is: $code');

BroadcastEvents().subscribe<int>('CUSTOM_EVENT_2', _handler);

BroadcastEvents().unsubscribe<int>('CUSTOM_EVENT_2', handler: _handler);

BroadcastEvents().publish<int>('CUSTOM_EVENT_2', arguments: 2);
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.