BinaryMessages.send

ServicesBinding.instance.defaultBinaryMessenger.send

BinaryMessages.setMessageHandler

ServicesBinding.instance.defaultBinaryMessenger.setMessageHandler

BinaryMessages.setMockMessageHandler

ServicesBinding.instance.defaultBinaryMessenger.setMockMessageHandler

References

API documentation:

ServicesBinding

BinaryMessenger

Relevant issues:

Flutter synchronization support for Espresso/EarlGrey

Relevant PRs:

Initially changed in #37489

Deprecated in #38464

Removed in #73750

Generic methods for BuildContext

Supported by fix tool: Yes