Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
72bd3602
Unverified
Commit
72bd3602
authored
Aug 25, 2023
by
Kate Lovett
Committed by
GitHub
Aug 25, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove deprecated onPlatformMessage from TestWindow and TestPlatformDispatcher (#133183)
parent
721016c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
30 deletions
+0
-30
window.dart
packages/flutter_test/lib/src/window.dart
+0
-30
No files found.
packages/flutter_test/lib/src/window.dart
View file @
72bd3602
...
@@ -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].
///
///
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment