@@ -70,9 +70,7 @@ void main() {
70
70
creationParams: creationParams ??
71
71
CreationParams (
72
72
webSettings: WebSettings (
73
- // TODO(mvanbeusekom): Cleanup and convert to const constructor when platform_interface is fixed (see https://github.com/flutter/flutter/issues/94311)
74
- // ignore: prefer_const_constructors
75
- userAgent: WebSetting <String ?>.absent (),
73
+ userAgent: const WebSetting <String ?>.absent (),
76
74
hasNavigationDelegate: hasNavigationDelegate,
77
75
hasProgressTracking: hasProgressTracking,
78
76
)),
@@ -123,9 +121,7 @@ void main() {
123
121
creationParams: CreationParams (
124
122
initialUrl: 'https://www.google.com' ,
125
123
webSettings: WebSettings (
126
- // TODO(mvanbeusekom): Cleanup and convert to const constructor when platform_interface is fixed (see https://github.com/flutter/flutter/issues/94311)
127
- // ignore: prefer_const_constructors
128
- userAgent: WebSetting <String ?>.absent (),
124
+ userAgent: const WebSetting <String ?>.absent (),
129
125
hasNavigationDelegate: false ,
130
126
),
131
127
),
@@ -142,9 +138,7 @@ void main() {
142
138
creationParams: CreationParams (
143
139
userAgent: 'MyUserAgent' ,
144
140
webSettings: WebSettings (
145
- // TODO(mvanbeusekom): Cleanup and convert to const constructor when platform_interface is fixed (see https://github.com/flutter/flutter/issues/94311)
146
- // ignore: prefer_const_constructors
147
- userAgent: WebSetting <String ?>.absent (),
141
+ userAgent: const WebSetting <String ?>.absent (),
148
142
hasNavigationDelegate: false ,
149
143
),
150
144
),
@@ -160,9 +154,7 @@ void main() {
160
154
autoMediaPlaybackPolicy:
161
155
AutoMediaPlaybackPolicy .require_user_action_for_all_media_types,
162
156
webSettings: WebSettings (
163
- // TODO(mvanbeusekom): Cleanup and convert to const constructor when platform_interface is fixed (see https://github.com/flutter/flutter/issues/94311)
164
- // ignore: prefer_const_constructors
165
- userAgent: WebSetting <String ?>.absent (),
157
+ userAgent: const WebSetting <String ?>.absent (),
166
158
hasNavigationDelegate: false ,
167
159
),
168
160
),
@@ -177,9 +169,7 @@ void main() {
177
169
creationParams: CreationParams (
178
170
autoMediaPlaybackPolicy: AutoMediaPlaybackPolicy .always_allow,
179
171
webSettings: WebSettings (
180
- // TODO(mvanbeusekom): Cleanup and convert to const constructor when platform_interface is fixed (see https://github.com/flutter/flutter/issues/94311)
181
- // ignore: prefer_const_constructors
182
- userAgent: WebSetting <String ?>.absent (),
172
+ userAgent: const WebSetting <String ?>.absent (),
183
173
hasNavigationDelegate: false ,
184
174
),
185
175
),
@@ -194,9 +184,7 @@ void main() {
194
184
creationParams: CreationParams (
195
185
javascriptChannelNames: < String > {'a' , 'b' },
196
186
webSettings: WebSettings (
197
- // TODO(mvanbeusekom): Cleanup and convert to const constructor when platform_interface is fixed (see https://github.com/flutter/flutter/issues/94311)
198
- // ignore: prefer_const_constructors
199
- userAgent: WebSetting <String ?>.absent (),
187
+ userAgent: const WebSetting <String ?>.absent (),
200
188
hasNavigationDelegate: false ,
201
189
),
202
190
),
@@ -214,9 +202,7 @@ void main() {
214
202
tester,
215
203
creationParams: CreationParams (
216
204
webSettings: WebSettings (
217
- // TODO(mvanbeusekom): Cleanup and convert to const constructor when platform_interface is fixed (see https://github.com/flutter/flutter/issues/94311)
218
- // ignore: prefer_const_constructors
219
- userAgent: WebSetting <String ?>.absent (),
205
+ userAgent: const WebSetting <String ?>.absent (),
220
206
javascriptMode: JavascriptMode .unrestricted,
221
207
hasNavigationDelegate: false ,
222
208
),
@@ -231,9 +217,7 @@ void main() {
231
217
tester,
232
218
creationParams: CreationParams (
233
219
webSettings: WebSettings (
234
- // TODO(mvanbeusekom): Cleanup and convert to const constructor when platform_interface is fixed (see https://github.com/flutter/flutter/issues/94311)
235
- // ignore: prefer_const_constructors
236
- userAgent: WebSetting <String ?>.absent (),
220
+ userAgent: const WebSetting <String ?>.absent (),
237
221
hasNavigationDelegate: true ,
238
222
),
239
223
),
@@ -248,9 +232,7 @@ void main() {
248
232
tester,
249
233
creationParams: CreationParams (
250
234
webSettings: WebSettings (
251
- // TODO(mvanbeusekom): Cleanup and convert to const constructor when platform_interface is fixed (see https://github.com/flutter/flutter/issues/94311)
252
- // ignore: prefer_const_constructors
253
- userAgent: WebSetting <String ?>.absent (),
235
+ userAgent: const WebSetting <String ?>.absent (),
254
236
debuggingEnabled: true ,
255
237
hasNavigationDelegate: false ,
256
238
),
@@ -265,9 +247,7 @@ void main() {
265
247
tester,
266
248
creationParams: CreationParams (
267
249
webSettings: WebSettings (
268
- // TODO(mvanbeusekom): Cleanup and convert to const constructor when platform_interface is fixed (see https://github.com/flutter/flutter/issues/94311)
269
- // ignore: prefer_const_constructors
270
- userAgent: WebSetting <String ?>.of ('myUserAgent' ),
250
+ userAgent: const WebSetting <String ?>.of ('myUserAgent' ),
271
251
hasNavigationDelegate: false ,
272
252
),
273
253
),
@@ -281,9 +261,7 @@ void main() {
281
261
tester,
282
262
creationParams: CreationParams (
283
263
webSettings: WebSettings (
284
- // TODO(mvanbeusekom): Cleanup and convert to const constructor when platform_interface is fixed (see https://github.com/flutter/flutter/issues/94311)
285
- // ignore: prefer_const_constructors
286
- userAgent: WebSetting <String ?>.absent (),
264
+ userAgent: const WebSetting <String ?>.absent (),
287
265
zoomEnabled: false ,
288
266
hasNavigationDelegate: false ,
289
267
),
0 commit comments