createBinaryMessenger method

  1. @override
BinaryMessenger createBinaryMessenger()
override

Creates a default BinaryMessenger instance that can be used for sending platform messages.

Many Flutter framework components that communicate with the platform assume messages are received by the platform in the same order in which they are sent. When overriding this method, be sure the BinaryMessenger implementation guarantees FIFO delivery.

Implementation

@override
BinaryMessenger createBinaryMessenger() {
  return TextInputBinaryMessenger(super.createBinaryMessenger());
}