setMockMethodCallHandler method

  1. @Deprecated('Use tester.binding.defaultBinaryMessenger.setMockMethodCallHandler or ' 'TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger.setMockMethodCallHandler instead. ' 'Pass the channel as the first argument. ' 'This feature was deprecated after v3.9.0-19.0.pre.')
void setMockMethodCallHandler(
  1. Future? handler(
    1. MethodCall call
    )?
)

Shim for TestDefaultBinaryMessenger.setMockMethodCallHandler.

Implementation

@Deprecated(
  'Use tester.binding.defaultBinaryMessenger.setMockMethodCallHandler or '
  'TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger.setMockMethodCallHandler instead. '
  'Pass the channel as the first argument. '
  'This feature was deprecated after v3.9.0-19.0.pre.'
)
void setMockMethodCallHandler(Future<dynamic>? Function(MethodCall call)? handler) {
  TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger.setMockMethodCallHandler(this, handler);
}