checkMockMessageHandler method

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

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

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


bool checkMockMessageHandler(String channel, MessageHandler handler) {
  return delegate.checkMockMessageHandler(channel, handler);