This repository was archived by the owner on Feb 22, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
packages/connectivity/connectivity Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 1+ ## 3.0.1
2+
3+ * Migrate tests to null safety.
4+
15## 3.0.0
26
37* Migrate to null safety.
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: connectivity
22description : Flutter plugin for discovering the state of the network (WiFi &
33 mobile/cellular) connectivity on Android and iOS.
44homepage : https://github.com/flutter/plugins/tree/master/packages/connectivity/connectivity
5- version : 3.0.0
5+ version : 3.0.1
66
77flutter :
88 plugin :
Original file line number Diff line number Diff line change 22// Use of this source code is governed by a BSD-style license that can be
33// found in the LICENSE file.
44
5- // TODO(cyanglaz): Remove once Mockito is migrated to null safety.
6- // @dart = 2.9
75import 'package:connectivity/connectivity.dart' ;
86import 'package:connectivity_platform_interface/connectivity_platform_interface.dart' ;
97import 'package:flutter_test/flutter_test.dart' ;
@@ -18,8 +16,8 @@ const LocationAuthorizationStatus kGetLocationResult =
1816
1917void main () {
2018 group ('Connectivity' , () {
21- Connectivity connectivity;
22- MockConnectivityPlatform fakePlatform;
19+ late Connectivity connectivity;
20+ late MockConnectivityPlatform fakePlatform;
2321 setUp (() async {
2422 fakePlatform = MockConnectivityPlatform ();
2523 ConnectivityPlatform .instance = fakePlatform;
You can’t perform that action at this time.
0 commit comments