BroadcastReceiver class

The Custom Events Service that can publish data from one module/component to another.

Constructors

BroadcastReceiver()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
publish<T>(String topic, {T? arguments}) → dynamic
Publish an Event to given topic.
subscribe<T>(String topic, EventHandler<T>? handler) → dynamic
Subscribe to an event topic. Events that get posted to that topic will trigger the provided handler
toString() String
A string representation of this object.
inherited
unsubscribe<T>(String topic, {EventHandler<T>? handler}) → dynamic
Unsubscribe from the given topic. Your handler will no longer recieve events published to this topic

Operators

operator ==(Object other) bool
The equality operator.
inherited