-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FED-3254 Officially support Dart 3 #958
Changes from all commits
4b7627b
b57ea35
b9788c2
36fc646
78a3004
c1ad5da
50abd3f
ff88b62
d754ed8
105f01b
32c5b36
9f53995
5412fef
922d535
3a6933a
25622a5
0331324
f6719b2
9d1cdd2
35e8c9c
bfa632a
bcbb6ea
375848e
d64668c
8df1dc0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -132,7 +132,7 @@ class CssValue implements Comparable<CssValue> { | |
|
||
/// Returns whether this value's [number] and [unit] are equal to that of [other]. | ||
@override | ||
bool operator ==(dynamic other) { | ||
bool operator ==(Object other) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This fixes a new built-in Dart warning; apparently There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. interesting |
||
return identical(this, other) || (other is CssValue && number == other.number && unit == other.unit); | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -96,13 +96,6 @@ void main() { | |
testValue: 'test value', | ||
); | ||
}); | ||
test('nullable dynamic with extraneous ? syntax', () { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These test cases tested a I tried suppressing those warnings, but Since this was an edge-case that warns when the user authors it, preserving the exact type is covered by other test cases, and we originally added this case "just in case", I opted to just remove this case here and in other files. |
||
testPropWriteAndRead<dynamic>( | ||
readProp: (p) => p.nullableDynamicWithQuestion, | ||
writeProp: (p, value) => p.nullableDynamicWithQuestion = value, | ||
testValue: 'test value', | ||
); | ||
}); | ||
test('nullable typedef, without ? syntax', () { | ||
testPropWriteAndRead<NullableTypedef>( | ||
readProp: (p) => p.nullableTypedefWithoutQuestion, | ||
|
@@ -171,9 +164,6 @@ void main() { | |
test('nullable dynamic', () { | ||
expectReadPropReturnsNull((props) => props.nullableDynamic); | ||
}); | ||
test('nullable dynamic with extraneous ? syntax', () { | ||
expectReadPropReturnsNull((props) => props.nullableDynamicWithQuestion); | ||
}); | ||
test('nullable typedef, without ? syntax', () { | ||
expectReadPropReturnsNull((props) => props.nullableTypedefWithoutQuestion); | ||
}); | ||
|
@@ -290,13 +280,6 @@ void main() { | |
testValue: 'test value', | ||
); | ||
}); | ||
test('nullable dynamic with extraneous ? syntax', () { | ||
testStateWriteAndRead<dynamic>( | ||
readState: (p) => p.nullableDynamicWithQuestion, | ||
writeState: (p, value) => p.nullableDynamicWithQuestion = value, | ||
testValue: 'test value', | ||
); | ||
}); | ||
test('nullable typedef, without ? syntax', () { | ||
testStateWriteAndRead<NullableTypedef>( | ||
readState: (p) => p.nullableTypedefWithoutQuestion, | ||
|
@@ -365,9 +348,6 @@ void main() { | |
test('nullable dynamic', () { | ||
expectReadStateReturnsNull((state) => state.nullableDynamic); | ||
}); | ||
test('nullable dynamic with extraneous ? syntax', () { | ||
expectReadStateReturnsNull((state) => state.nullableDynamicWithQuestion); | ||
}); | ||
test('nullable typedef, without ? syntax', () { | ||
expectReadStateReturnsNull((state) => state.nullableTypedefWithoutQuestion); | ||
}); | ||
|
@@ -396,8 +376,6 @@ class _$NullSafeTestProps extends UiProps { | |
String? nullable; | ||
dynamic nullableDynamic; | ||
|
||
// ignore: unnecessary_question_mark | ||
dynamic? nullableDynamicWithQuestion; | ||
NullableTypedef nullableTypedefWithoutQuestion; | ||
} | ||
|
||
|
@@ -412,8 +390,6 @@ class _$NullSafeTestState extends UiState { | |
String? nullable; | ||
dynamic nullableDynamic; | ||
|
||
// ignore: unnecessary_question_mark | ||
dynamic? nullableDynamicWithQuestion; | ||
NullableTypedef nullableTypedefWithoutQuestion; | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These weren't actually overrides and were infos in Dart 2, but got upgraded to warnings in Dart 3.