setMockMessageHandler method
- @Deprecated('Use tester.binding.defaultBinaryMessenger.setMockDecodedMessageHandler or ' 'TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger.setMockDecodedMessageHandler instead. ' 'Pass the channel as the first argument. ' 'This feature was deprecated after v3.9.0-19.0.pre.')
- Future<
T> handler(- T? message
Shim for TestDefaultBinaryMessenger.setMockDecodedMessageHandler.
Implementation
@Deprecated(
'Use tester.binding.defaultBinaryMessenger.setMockDecodedMessageHandler or '
'TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger.setMockDecodedMessageHandler instead. '
'Pass the channel as the first argument. '
'This feature was deprecated after v3.9.0-19.0.pre.'
)
void setMockMessageHandler(Future<T> Function(T? message)? handler) {
TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger.setMockDecodedMessageHandler<T>(this, handler);
}