Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit c9c8193

Browse files
author
Chris Yang
committed
review
1 parent 3dfbb26 commit c9c8193

File tree

2 files changed

+41
-41
lines changed

2 files changed

+41
-41
lines changed

packages/device_info/device_info_platform_interface/lib/model/android_device_info.dart

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,27 @@
88
class AndroidDeviceInfo {
99
/// Android device Info class.
1010
AndroidDeviceInfo({
11-
this.version,
12-
this.board,
13-
this.bootloader,
14-
this.brand,
15-
this.device,
16-
this.display,
17-
this.fingerprint,
18-
this.hardware,
19-
this.host,
20-
this.id,
21-
this.manufacturer,
22-
this.model,
23-
this.product,
24-
List<String> supported32BitAbis = const [],
25-
List<String> supported64BitAbis = const [],
26-
List<String> supportedAbis = const [],
27-
this.tags,
28-
this.type,
29-
this.isPhysicalDevice,
30-
this.androidId,
31-
List<String> systemFeatures = const [],
11+
required this.version,
12+
required this.board,
13+
required this.bootloader,
14+
required this.brand,
15+
required this.device,
16+
required this.display,
17+
required this.fingerprint,
18+
required this.hardware,
19+
required this.host,
20+
required this.id,
21+
required this.manufacturer,
22+
required this.model,
23+
required this.product,
24+
required List<String> supported32BitAbis,
25+
required List<String> supported64BitAbis,
26+
required List<String> supportedAbis,
27+
required this.tags,
28+
required this.type,
29+
required this.isPhysicalDevice,
30+
required this.androidId,
31+
required List<String> systemFeatures,
3232
}) : supported32BitAbis = List<String>.unmodifiable(supported32BitAbis),
3333
supported64BitAbis = List<String>.unmodifiable(supported64BitAbis),
3434
supportedAbis = List<String>.unmodifiable(supportedAbis),
@@ -151,13 +151,13 @@ class AndroidDeviceInfo {
151151
/// See: https://developer.android.com/reference/android/os/Build.VERSION.html
152152
class AndroidBuildVersion {
153153
AndroidBuildVersion._({
154-
this.baseOS,
155-
this.codename,
156-
this.incremental,
157-
this.previewSdkInt,
158-
this.release,
159-
this.sdkInt,
160-
this.securityPatch,
154+
required this.baseOS,
155+
required this.codename,
156+
required this.incremental,
157+
required this.previewSdkInt,
158+
required this.release,
159+
required this.sdkInt,
160+
required this.securityPatch,
161161
});
162162

163163
/// The base OS build the product is based on.

packages/device_info/device_info_platform_interface/lib/model/ios_device_info.dart

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
class IosDeviceInfo {
99
/// IOS device info class.
1010
IosDeviceInfo({
11-
this.name,
12-
this.systemName,
13-
this.systemVersion,
14-
this.model,
15-
this.localizedModel,
16-
this.identifierForVendor,
17-
this.isPhysicalDevice,
18-
this.utsname,
11+
required this.name,
12+
required this.systemName,
13+
required this.systemVersion,
14+
required this.model,
15+
required this.localizedModel,
16+
required this.identifierForVendor,
17+
required this.isPhysicalDevice,
18+
required this.utsname,
1919
});
2020

2121
/// Device name.
@@ -62,11 +62,11 @@ class IosDeviceInfo {
6262
/// See http://pubs.opengroup.org/onlinepubs/7908799/xsh/sysutsname.h.html for details.
6363
class IosUtsname {
6464
IosUtsname._({
65-
this.sysname,
66-
this.nodename,
67-
this.release,
68-
this.version,
69-
this.machine,
65+
required this.sysname,
66+
required this.nodename,
67+
required this.release,
68+
required this.version,
69+
required this.machine,
7070
});
7171

7272
/// Operating system name.

0 commit comments

Comments
 (0)