2
2
// Use of this source code is governed by a BSD-style license that can be
3
3
// found in the LICENSE file.
4
4
5
- // TODO(dnfield): Remove unused_import ignores when https://github.com/dart-lang/sdk/issues/35164 is resolved.
6
-
7
5
8
6
// @dart = 2.12
9
7
part of dart.ui;
@@ -53,78 +51,65 @@ void _updateWindowMetrics(
53
51
typedef _LocaleClosure = String Function ();
54
52
55
53
@pragma ('vm:entry-point' )
56
- // ignore: unused_element
57
54
_LocaleClosure ? _getLocaleClosure () => PlatformDispatcher .instance._localeClosure;
58
55
59
56
@pragma ('vm:entry-point' )
60
- // ignore: unused_element
61
57
void _updateLocales (List <String > locales) {
62
58
PlatformDispatcher .instance._updateLocales (locales);
63
59
}
64
60
65
61
@pragma ('vm:entry-point' )
66
- // ignore: unused_element
67
62
void _updateUserSettingsData (String jsonData) {
68
63
PlatformDispatcher .instance._updateUserSettingsData (jsonData);
69
64
}
70
65
71
66
@pragma ('vm:entry-point' )
72
- // ignore: unused_element
73
67
void _updateLifecycleState (String state) {
74
68
PlatformDispatcher .instance._updateLifecycleState (state);
75
69
}
76
70
77
71
@pragma ('vm:entry-point' )
78
- // ignore: unused_element
79
72
void _updateSemanticsEnabled (bool enabled) {
80
73
PlatformDispatcher .instance._updateSemanticsEnabled (enabled);
81
74
}
82
75
83
76
@pragma ('vm:entry-point' )
84
- // ignore: unused_element
85
77
void _updateAccessibilityFeatures (int values) {
86
78
PlatformDispatcher .instance._updateAccessibilityFeatures (values);
87
79
}
88
80
89
81
@pragma ('vm:entry-point' )
90
- // ignore: unused_element
91
82
void _dispatchPlatformMessage (String name, ByteData ? data, int responseId) {
92
83
PlatformDispatcher .instance._dispatchPlatformMessage (name, data, responseId);
93
84
}
94
85
95
86
@pragma ('vm:entry-point' )
96
- // ignore: unused_element
97
87
void _dispatchPointerDataPacket (ByteData packet) {
98
88
PlatformDispatcher .instance._dispatchPointerDataPacket (packet);
99
89
}
100
90
101
91
@pragma ('vm:entry-point' )
102
- // ignore: unused_element
103
92
void _dispatchKeyData (ByteData packet, int responseId) {
104
93
PlatformDispatcher .instance._dispatchKeyData (packet, responseId);
105
94
}
106
95
107
96
@pragma ('vm:entry-point' )
108
- // ignore: unused_element
109
97
void _dispatchSemanticsAction (int id, int action, ByteData ? args) {
110
98
PlatformDispatcher .instance._dispatchSemanticsAction (id, action, args);
111
99
}
112
100
113
101
@pragma ('vm:entry-point' )
114
- // ignore: unused_element
115
102
void _beginFrame (int microseconds, int frameNumber) {
116
103
PlatformDispatcher .instance._beginFrame (microseconds);
117
104
PlatformDispatcher .instance._updateFrameData (frameNumber);
118
105
}
119
106
120
107
@pragma ('vm:entry-point' )
121
- // ignore: unused_element
122
108
void _reportTimings (List <int > timings) {
123
109
PlatformDispatcher .instance._reportTimings (timings);
124
110
}
125
111
126
112
@pragma ('vm:entry-point' )
127
- // ignore: unused_element
128
113
void _drawFrame () {
129
114
PlatformDispatcher .instance._drawFrame ();
130
115
}
@@ -133,7 +118,6 @@ void _drawFrame() {
133
118
typedef _ListStringArgFunction (List <String > args);
134
119
135
120
@pragma ('vm:entry-point' )
136
- // ignore: unused_element
137
121
void _runMainZoned (Function startMainIsolateFunction,
138
122
Function userMainFunction,
139
123
List <String > args) {
@@ -246,7 +230,6 @@ bool _isLoopback(String host) {
246
230
/// Zone override with 'flutter.io.allow_http' takes first priority.
247
231
/// If zone override is not provided, engine setting is checked.
248
232
@pragma ('vm:entry-point' )
249
- // ignore: unused_element
250
233
void Function (Uri ) _getHttpConnectionHookClosure (bool mayInsecurelyConnectToAllDomains) {
251
234
return (Uri uri) {
252
235
final dynamic zoneOverride = Zone .current[#flutter.io.allow_http];
0 commit comments