checkMockMessageHandler method

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

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.

Implementation

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