Unverified Commit 72bd3602 authored by Kate Lovett's avatar Kate Lovett Committed by GitHub

Remove deprecated onPlatformMessage from TestWindow and TestPlatformDispatcher (#133183)

parent 721016c1
...@@ -442,21 +442,6 @@ class TestPlatformDispatcher implements PlatformDispatcher { ...@@ -442,21 +442,6 @@ class TestPlatformDispatcher implements PlatformDispatcher {
_platformDispatcher.sendPlatformMessage(name, data, callback); _platformDispatcher.sendPlatformMessage(name, data, callback);
} }
@Deprecated(
'Instead of calling this callback, use ServicesBinding.instance.channelBuffers.push. '
'This feature was deprecated after v2.1.0-10.0.pre.'
)
@override
PlatformMessageCallback? get onPlatformMessage => _platformDispatcher.onPlatformMessage;
@Deprecated(
'Instead of setting this callback, use ServicesBinding.instance.defaultBinaryMessenger.setMessageHandler. '
'This feature was deprecated after v2.1.0-10.0.pre.'
)
@override
set onPlatformMessage(PlatformMessageCallback? callback) {
_platformDispatcher.onPlatformMessage = callback;
}
/// Delete any test value properties that have been set on this [TestPlatformDispatcher] /// Delete any test value properties that have been set on this [TestPlatformDispatcher]
/// and return to reporting the real [PlatformDispatcher] values for all /// and return to reporting the real [PlatformDispatcher] values for all
/// [PlatformDispatcher] properties. /// [PlatformDispatcher] properties.
...@@ -1838,21 +1823,6 @@ class TestWindow implements SingletonFlutterWindow { ...@@ -1838,21 +1823,6 @@ class TestWindow implements SingletonFlutterWindow {
platformDispatcher.sendPlatformMessage(name, data, callback); platformDispatcher.sendPlatformMessage(name, data, callback);
} }
@Deprecated(
'Instead of calling this callback, use ServicesBinding.instance.channelBuffers.push. '
'This feature was deprecated after v2.1.0-10.0.pre.'
)
@override
PlatformMessageCallback? get onPlatformMessage => platformDispatcher.onPlatformMessage;
@Deprecated(
'Instead of setting this callback, use ServicesBinding.instance.defaultBinaryMessenger.setMessageHandler. '
'This feature was deprecated after v2.1.0-10.0.pre.'
)
@override
set onPlatformMessage(PlatformMessageCallback? callback) {
platformDispatcher.onPlatformMessage = callback;
}
/// Delete any test value properties that have been set on this [TestWindow] /// Delete any test value properties that have been set on this [TestWindow]
/// as well as its [platformDispatcher]. /// as well as its [platformDispatcher].
/// ///
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment