File tree Expand file tree Collapse file tree 4 files changed +18
-2
lines changed Expand file tree Collapse file tree 4 files changed +18
-2
lines changed Original file line number Diff line number Diff line change
1
+ ## 0.3.3+4
2
+
3
+ * Reverts an accidental change in a constructor argument's nullability.
4
+
1
5
## 0.3.3+3
2
6
7
+ * ** RETRACTED**
3
8
* Updates code to fix strict-cast violations.
4
9
* Updates minimum SDK version to Flutter 3.0.
5
10
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ class XFile extends XFileBase {
22
22
/// `path` of the file doesn't match what the user sees when selecting it
23
23
/// (like in web)
24
24
XFile (
25
- super .path, {
25
+ String super .path, {
26
26
String ? mimeType,
27
27
String ? name,
28
28
int ? length,
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: cross_file
2
2
description : An abstraction to allow working with files across multiple platforms.
3
3
repository : https://github.com/flutter/packages/tree/main/packages/cross_file
4
4
issue_tracker : https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+cross_file%22
5
- version : 0.3.3+3
5
+ version : 0.3.3+4
6
6
7
7
environment :
8
8
sdk : " >=2.17.0 <3.0.0"
Original file line number Diff line number Diff line change @@ -70,6 +70,10 @@ void main() {
70
70
71
71
await tempDir.delete (recursive: true );
72
72
});
73
+
74
+ test ('nullability is correct' , () async {
75
+ expect (_ensureNonnullPathArgument ('a/path' ), isNotNull);
76
+ });
73
77
});
74
78
75
79
group ('Create with data' , () {
@@ -107,6 +111,13 @@ void main() {
107
111
});
108
112
}
109
113
114
+ // This is to create an analysis error if the version of XFile in
115
+ // interface.dart, which should never actually be used but is what the analyzer
116
+ // runs against, has the nullability of `path` changed.
117
+ XFile _ensureNonnullPathArgument (String ? path) {
118
+ return XFile (path! );
119
+ }
120
+
110
121
/// An XFile subclass that tracks reads, for testing purposes.
111
122
class TestXFile extends XFile {
112
123
TestXFile (super .path);
You can’t perform that action at this time.
0 commit comments