checkMockMessageHandler method

  1. @Deprecated('Use tester.binding.defaultBinaryMessenger.checkMockMessageHandler or ' 'TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger.checkMockMessageHandler instead. ' 'For the first argument, pass channel.name. ' 'This feature was deprecated after v3.9.0-19.0.pre.')
bool checkMockMessageHandler(
  1. String channel,
  2. Object? handler
)

Shim for TestDefaultBinaryMessenger.checkMockMessageHandler.

Implementation

@Deprecated(
  'Use tester.binding.defaultBinaryMessenger.checkMockMessageHandler or '
  'TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger.checkMockMessageHandler instead. '
  'For the first argument, pass channel.name. '
  'This feature was deprecated after v3.9.0-19.0.pre.'
)
bool checkMockMessageHandler(String channel, Object? handler) {
  return TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger.checkMockMessageHandler(channel, handler);
}