BroadcastReceiver class Null safety

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.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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