checkMockMethodCallHandler method

bool checkMockMethodCallHandler (
  1. Future handler(
    1. MethodCall call
    )
)

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

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

bool checkMockMethodCallHandler(Future<dynamic> handler(MethodCall call)) => _methodChannelMockHandlers[this] == handler;