checkMethodCallHandler method

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

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

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 checkMethodCallHandler(Future<dynamic> handler(MethodCall call)) => _methodChannelHandlers[this] == handler;