@@ -256,7 +256,7 @@ void main() {
256256 DefaultTextStyle textStyle = tester.widget (find.widgetWithText (DefaultTextStyle , 'Child 1' ));
257257 IconTheme iconTheme = tester.widget (find.widgetWithIcon (IconTheme , const IconData (1 )));
258258
259- expect (textStyle.style! .color, isSameColorAs (CupertinoColors .white));
259+ expect (textStyle.style.color, isSameColorAs (CupertinoColors .white));
260260 expect (iconTheme.data.color, CupertinoColors .activeBlue);
261261
262262 await tester.tap (find.widgetWithIcon (IconTheme , const IconData (1 )));
@@ -265,7 +265,7 @@ void main() {
265265 textStyle = tester.widget (find.widgetWithText (DefaultTextStyle , 'Child 1' ));
266266 iconTheme = tester.widget (find.widgetWithIcon (IconTheme , const IconData (1 )));
267267
268- expect (textStyle.style! .color, CupertinoColors .activeBlue);
268+ expect (textStyle.style.color, CupertinoColors .activeBlue);
269269 expect (iconTheme.data.color, isSameColorAs (CupertinoColors .white));
270270 });
271271
@@ -300,7 +300,7 @@ void main() {
300300 DefaultTextStyle textStyle = tester.widget (find.widgetWithText (DefaultTextStyle , 'Child 1' ).first);
301301 IconThemeData iconTheme = IconTheme .of (tester.element (find.byIcon (const IconData (1 ))));
302302
303- expect (textStyle.style! .color, isSameColorAs (CupertinoColors .black));
303+ expect (textStyle.style.color, isSameColorAs (CupertinoColors .black));
304304 expect (iconTheme.color, isSameColorAs (CupertinoColors .systemBlue.darkColor));
305305
306306 await tester.tap (find.byIcon (const IconData (1 )));
@@ -310,7 +310,7 @@ void main() {
310310 textStyle = tester.widget (find.widgetWithText (DefaultTextStyle , 'Child 1' ).first);
311311 iconTheme = IconTheme .of (tester.element (find.byIcon (const IconData (1 ))));
312312
313- expect (textStyle.style! .color, isSameColorAs (CupertinoColors .systemBlue.darkColor));
313+ expect (textStyle.style.color, isSameColorAs (CupertinoColors .systemBlue.darkColor));
314314 expect (iconTheme.color, isSameColorAs (CupertinoColors .black));
315315 },
316316 );
@@ -348,7 +348,7 @@ void main() {
348348 IconTheme iconTheme = tester.widget (find.widgetWithIcon (IconTheme , const IconData (1 )));
349349
350350 expect (getRenderSegmentedControl (tester).borderColor, CupertinoColors .black);
351- expect (textStyle.style! .color, CupertinoColors .lightBackgroundGray);
351+ expect (textStyle.style.color, CupertinoColors .lightBackgroundGray);
352352 expect (iconTheme.data.color, CupertinoColors .activeGreen.color);
353353 expect (getBackgroundColor (tester, 0 ), CupertinoColors .activeGreen.color);
354354 expect (getBackgroundColor (tester, 1 ), CupertinoColors .lightBackgroundGray);
@@ -359,7 +359,7 @@ void main() {
359359 textStyle = tester.widget (find.widgetWithText (DefaultTextStyle , 'Child 1' ));
360360 iconTheme = tester.widget (find.widgetWithIcon (IconTheme , const IconData (1 )));
361361
362- expect (textStyle.style! .color, CupertinoColors .activeGreen.color);
362+ expect (textStyle.style.color, CupertinoColors .activeGreen.color);
363363 expect (iconTheme.data.color, CupertinoColors .lightBackgroundGray);
364364 expect (getBackgroundColor (tester, 0 ), CupertinoColors .lightBackgroundGray);
365365 expect (getBackgroundColor (tester, 1 ), CupertinoColors .activeGreen.color);
0 commit comments