checkMessageHandler method

  1. @override
bool checkMessageHandler (
  1. String channel,
  2. MessageHandler handler
)
override

Returns true if the handler argument matches the handler previously passed to setMessageHandler.

This method is useful for tests or test harnesses that want to assert the handler for the specified channel has not been altered by a previous test.

Implementation

@override
bool checkMessageHandler(String channel, MessageHandler handler) {
  return delegate.checkMessageHandler(channel, handler);
}