BroadcastManager class
The Broadcast Manager.
Resolves the configured broadcasting connection and returns the appropriate driver. Follows the same manager pattern as LogManager and CacheManager.
final driver = BroadcastManager().connection();
await driver.connect();
- Implementers
Constructors
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
-
connection(
[String? name]) → BroadcastDriver -
Get the broadcast driver for the given
name, or the default connection. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
extend(
String name, BroadcastDriver factory(Map< String, dynamic> config)) → void - Register a custom broadcast driver factory.
-
resetDrivers(
) → void - Reset all custom drivers (for testing).