checkMockMessageHandler method Null safety

bool checkMockMessageHandler(
  1. Object? handler
)

Shim for TestDefaultBinaryMessenger.checkMockMessageHandler.

Implementation

// HYPERLINK ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
// TODO(ianh): deprecate this method: @NotYetDeprecated(
//   'Use tester.binding.defaultBinaryMessenger.checkMockMessageHandler or '
//   'TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger.checkMockMessageHandler instead. '
//   'For the first argument, pass channel.name. '
//   'This feature was deprecated after v2.1.0-10.0.pre.'
// )
bool checkMockMessageHandler(Object? handler) {
  return TestDefaultBinaryMessengerBinding.instance!.defaultBinaryMessenger.checkMockMessageHandler(name, handler);
}