Migrate to ChannelBuffers.push (#76288)

* Migrate to ChannelBuffers.push

* Move TestDefaultBinaryMessenger to its own file

* Apply deprecations and fix usages
This commit is contained in:
Ian Hickson
2021-04-23 15:39:34 -07:00
committed by GitHub
parent 39554279b0
commit c26ed03c8a
74 changed files with 889 additions and 596 deletions

View File

@@ -11,6 +11,6 @@ void main() {
Ticker((Duration duration) { }).start();
final ByteData? message = const StringCodec().encodeMessage('AppLifecycleState.paused');
await ServicesBinding.instance!.defaultBinaryMessenger.handlePlatformMessage('flutter/lifecycle', message, (_) {});
await tester.binding.defaultBinaryMessenger.handlePlatformMessage('flutter/lifecycle', message, (_) {});
});
}