This repository was archived by the owner on Feb 22, 2023. It is now read-only.
File tree 3 files changed +6
-4
lines changed
packages/file_selector/file_selector_platform_interface
lib/src/types/x_type_group
3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
## 2.3.0
2
2
3
- * Adds the ` uniformTypeIdentifiers ` property to the ` XTypeGroup ` that relies on ` macUTIs ` . The last will be deprecated for future releases .
3
+ * Replaces ` macUTIs ` with ` uniformTypeIdentifiers ` . ` macUTIs ` is available as an alias, but will be deprecated in a future release .
4
4
5
5
## 2.2.0
6
6
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ class XTypeGroup {
19
19
this .webWildCards,
20
20
}) : _extensions = extensions,
21
21
assert (uniformTypeIdentifiers == null || macUTIs == null ,
22
- 'It is only allowed to specify either macUTIs or uniformTypeIdentifiers ' ),
22
+ 'Only one of uniformTypeIdentifiers or macUTIs can be non-null ' ),
23
23
uniformTypeIdentifiers = uniformTypeIdentifiers ?? macUTIs;
24
24
25
25
/// The 'name' or reference to this group of types.
Original file line number Diff line number Diff line change @@ -99,7 +99,9 @@ void main() {
99
99
expect (group.macUTIs, macUTIs);
100
100
});
101
101
102
- test ('macUTIs getter returns uniformTypeIdentifiers value passed in constructor' , () {
102
+ test (
103
+ 'macUTIs getter returns uniformTypeIdentifiers value passed in constructor' ,
104
+ () {
103
105
const List <String > uniformTypeIdentifiers = < String > ['public.plain-text' ];
104
106
const XTypeGroup group = XTypeGroup (
105
107
uniformTypeIdentifiers: uniformTypeIdentifiers,
@@ -120,7 +122,7 @@ void main() {
120
122
throwsA (predicate ((Object ? e) =>
121
123
e is AssertionError &&
122
124
e.message ==
123
- 'It is only allowed to specify either macUTIs or uniformTypeIdentifiers ' )));
125
+ 'Only one of uniformTypeIdentifiers or macUTIs can be non-null ' )));
124
126
});
125
127
126
128
test (
You can’t perform that action at this time.
0 commit comments