simulateStatusBarTap method
Sends a 'handleScrollToTop' message to the test application via the SystemChannels.statusBar channel, to simulate an iOS status bar tap event.
Implementation
void simulateStatusBarTap() {
final ByteData message = const JSONMethodCodec().encodeMethodCall(
const MethodCall('handleScrollToTop'),
);
binding.defaultBinaryMessenger.handlePlatformMessage(
SystemChannels.statusBar.name,
message,
(ByteData? data) {},
);
}