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

Commit 663e074

Browse files
author
Chris Yang
committed
more fix
1 parent b9491ba commit 663e074

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/device_info/device_info/example/integration_test/device_info_test.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import 'package:integration_test/integration_test.dart';
1010
void main() {
1111
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
1212

13-
IosDeviceInfo iosInfo;
14-
AndroidDeviceInfo androidInfo;
13+
IosDeviceInfo? iosInfo;
14+
AndroidDeviceInfo? androidInfo;
1515

1616
setUpAll(() async {
1717
final DeviceInfoPlugin deviceInfoPlugin = DeviceInfoPlugin();
@@ -24,9 +24,9 @@ void main() {
2424

2525
testWidgets('Can get non-null device model', (WidgetTester tester) async {
2626
if (Platform.isIOS) {
27-
expect(iosInfo.model, isNotNull);
27+
expect(iosInfo?.model, isNotNull);
2828
} else if (Platform.isAndroid) {
29-
expect(androidInfo.model, isNotNull);
29+
expect(androidInfo?.model, isNotNull);
3030
}
3131
});
3232
}

0 commit comments

Comments
 (0)