createBinaryMessenger method Null safety

  1. @override
TestDefaultBinaryMessenger 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
TestDefaultBinaryMessenger createBinaryMessenger() {
  return TestDefaultBinaryMessenger(super.createBinaryMessenger());
}