@@ -21,18 +21,18 @@ class AndroidDeviceInfo {
21
21
this .manufacturer,
22
22
this .model,
23
23
this .product,
24
- required List <String > supported32BitAbis,
25
- required List <String > supported64BitAbis,
26
- required List <String > supportedAbis,
24
+ required List <String ? > supported32BitAbis,
25
+ required List <String ? > supported64BitAbis,
26
+ required List <String ? > supportedAbis,
27
27
this .tags,
28
28
this .type,
29
29
this .isPhysicalDevice,
30
30
this .androidId,
31
- required List <String > systemFeatures,
32
- }) : supported32BitAbis = List <String >.unmodifiable (supported32BitAbis),
33
- supported64BitAbis = List <String >.unmodifiable (supported64BitAbis),
34
- supportedAbis = List <String >.unmodifiable (supportedAbis),
35
- systemFeatures = List <String >.unmodifiable (systemFeatures);
31
+ required List <String ? > systemFeatures,
32
+ }) : supported32BitAbis = List <String ? >.unmodifiable (supported32BitAbis),
33
+ supported64BitAbis = List <String ? >.unmodifiable (supported64BitAbis),
34
+ supportedAbis = List <String ? >.unmodifiable (supportedAbis),
35
+ systemFeatures = List <String ? >.unmodifiable (systemFeatures);
36
36
37
37
/// Android operating system version values derived from `android.os.Build.VERSION` .
38
38
final AndroidBuildVersion version;
@@ -74,13 +74,13 @@ class AndroidDeviceInfo {
74
74
final String ? product;
75
75
76
76
/// An ordered list of 32 bit ABIs supported by this device.
77
- final List <String > supported32BitAbis;
77
+ final List <String ? > supported32BitAbis;
78
78
79
79
/// An ordered list of 64 bit ABIs supported by this device.
80
- final List <String > supported64BitAbis;
80
+ final List <String ? > supported64BitAbis;
81
81
82
82
/// An ordered list of ABIs supported by this device.
83
- final List <String > supportedAbis;
83
+ final List <String ? > supportedAbis;
84
84
85
85
/// Comma-separated tags describing the build, like "unsigned,debug".
86
86
final String ? tags;
@@ -108,7 +108,7 @@ class AndroidDeviceInfo {
108
108
/// and many of the common feature strings to look for are available in
109
109
/// PackageManager's public documentation:
110
110
/// https://developer.android.com/reference/android/content/pm/PackageManager
111
- final List <String > systemFeatures;
111
+ final List <String ? > systemFeatures;
112
112
113
113
/// Deserializes from the message received from [_kChannel] .
114
114
static AndroidDeviceInfo fromMap (Map <String , dynamic > map) {
@@ -139,9 +139,9 @@ class AndroidDeviceInfo {
139
139
}
140
140
141
141
/// Deserializes message as List<String>
142
- static List <String > _fromList (dynamic message) {
142
+ static List <String ? > _fromList (dynamic message) {
143
143
final List <dynamic > list = message;
144
- return List <String >.from (list);
144
+ return List <String ? >.from (list);
145
145
}
146
146
}
147
147
0 commit comments