createBinaryMessenger method Null safety

  1. @override
BinaryMessenger createBinaryMessenger ()
override

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

Implementation

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