setMockMethodCallHandler method
- @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.')
- Future? handler(
- 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);
}