MockBroadcastChannel class

In-process mock channel for tests and environments without BroadcastChannel.

Implemented types

Constructors

MockBroadcastChannel(String name)
Creates a MockBroadcastChannel for the given name.

Properties

hashCode → int
The hash code for this object.
no setterinherited
name → String
final
onMessage → Stream
Stream of messages received from other tabs.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → void
Close the channel.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
postMessage(dynamic message) → void
Send a message to other tabs.
override
toString() → String
A string representation of this object.
inherited

Operators

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