This repository was archived by the owner on Feb 22, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +7
-5
lines changed
packages/plugin_platform_interface Expand file tree Collapse file tree 4 files changed +7
-5
lines changed Original file line number Diff line number Diff line change
1
+ ## 1.1.0-nullsafety.2
2
+
3
+ * Use Mockito null safe.
4
+
1
5
## 1.1.0-nullsafety.1
2
6
3
7
* Bump Dart SDK to support null safety.
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ abstract class PlatformInterface {
43
43
/// Pass a private, class-specific `const Object()` as the `token` .
44
44
PlatformInterface ({required Object token}) : _instanceToken = token;
45
45
46
- final Object _instanceToken;
46
+ final Object ? _instanceToken;
47
47
48
48
/// Ensures that the platform instance has a token that matches the
49
49
/// provided token and throws [AssertionError] if not.
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ description: Reusable base class for Flutter plugin platform interfaces.
12
12
# be done when absolutely necessary and after the ecosystem has already migrated to 1.X.Y version
13
13
# that is forward compatible with 2.0.0 (ideally the ecosystem have migrated to depend on:
14
14
# `plugin_platform_interface: >=1.X.Y <3.0.0`).
15
- version : 1.1.0-nullsafety.1
15
+ version : 1.1.0-nullsafety.2
16
16
17
17
repository : https://github.com/flutter/plugins/tree/master/packages/plugin_platform_interface
18
18
@@ -23,6 +23,6 @@ dependencies:
23
23
meta : ^1.3.0-nullsafety.3
24
24
25
25
dev_dependencies :
26
- mockito : ^4.1.1
26
+ mockito : ^5.0.0-nullsafety.2
27
27
test : ^1.10.0-nullsafety.1
28
28
pedantic : ^1.10.0-nullsafety.1
Original file line number Diff line number Diff line change 2
2
// Use of this source code is governed by a BSD-style license that can be
3
3
// found in the LICENSE file.
4
4
5
- // TODO(egarciad): Remove once Mockito is migrated to null safety.
6
- // @dart = 2.9
7
5
import 'package:mockito/mockito.dart' ;
8
6
import 'package:test/test.dart' ;
9
7
You can’t perform that action at this time.
0 commit comments