assertSubscribed method
Assert that channel is currently in the subscribed channels list.
Throws AssertionError if channel was not subscribed.
Implementation
void assertSubscribed(String channel) {
if (!_driver._subscribedChannels.contains(channel)) {
throw AssertionError(
'Expected channel "$channel" to be subscribed but it was not found. '
'Subscribed channels: ${_driver._subscribedChannels}',
);
}
}