Skip to content

Commit 183c8f0

Browse files
Null aware operator consistency (flutter#86223)
1 parent a7dd669 commit 183c8f0

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

packages/flutter/test/material/flat_button_test.dart

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ void main() {
3636
expect(material.elevation, 0.0);
3737
expect(material.shadowColor, null);
3838
expect(material.shape, RoundedRectangleBorder(borderRadius: BorderRadius.circular(2.0)));
39-
expect(material.textStyle?.color, const Color(0xdd000000));
40-
expect(material.textStyle?.fontFamily, 'Roboto');
41-
expect(material.textStyle?.fontSize, 14);
42-
expect(material.textStyle?.fontWeight, FontWeight.w500);
39+
expect(material.textStyle!.color, const Color(0xdd000000));
40+
expect(material.textStyle!.fontFamily, 'Roboto');
41+
expect(material.textStyle!.fontSize, 14);
42+
expect(material.textStyle!.fontWeight, FontWeight.w500);
4343
expect(material.type, MaterialType.transparency);
4444

4545
final Offset center = tester.getCenter(find.byType(FlatButton));
@@ -56,10 +56,10 @@ void main() {
5656
expect(material.elevation, 0.0);
5757
expect(material.shadowColor, null);
5858
expect(material.shape, RoundedRectangleBorder(borderRadius: BorderRadius.circular(2.0)));
59-
expect(material.textStyle?.color, const Color(0xdd000000));
60-
expect(material.textStyle?.fontFamily, 'Roboto');
61-
expect(material.textStyle?.fontSize, 14);
62-
expect(material.textStyle?.fontWeight, FontWeight.w500);
59+
expect(material.textStyle!.color, const Color(0xdd000000));
60+
expect(material.textStyle!.fontFamily, 'Roboto');
61+
expect(material.textStyle!.fontSize, 14);
62+
expect(material.textStyle!.fontWeight, FontWeight.w500);
6363
expect(material.type, MaterialType.transparency);
6464

6565
// Disabled FlatButton
@@ -81,10 +81,10 @@ void main() {
8181
expect(material.elevation, 0.0);
8282
expect(material.shadowColor, null);
8383
expect(material.shape, RoundedRectangleBorder(borderRadius: BorderRadius.circular(2.0)));
84-
expect(material.textStyle?.color, const Color(0x61000000));
85-
expect(material.textStyle?.fontFamily, 'Roboto');
86-
expect(material.textStyle?.fontSize, 14);
87-
expect(material.textStyle?.fontWeight, FontWeight.w500);
84+
expect(material.textStyle!.color, const Color(0x61000000));
85+
expect(material.textStyle!.fontFamily, 'Roboto');
86+
expect(material.textStyle!.fontSize, 14);
87+
expect(material.textStyle!.fontWeight, FontWeight.w500);
8888
expect(material.type, MaterialType.transparency);
8989
});
9090

0 commit comments

Comments
 (0)