File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
packages/flutter_reactive_ble/lib/src/rx_ext Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 1
1
include : package:flutter_lints/flutter.yaml
2
2
3
3
analyzer :
4
- strong-mode :
5
- implicit-casts : false
6
- implicit-dynamic : false
4
+ language :
5
+ # strict-casts: true -- DISABLED: Enabled in Dart 2.17
6
+ strict-inference : true
7
+ strict-raw-types : true
7
8
exclude :
8
9
- " bin/cache/**"
9
10
- " **/*.freezed.dart"
Original file line number Diff line number Diff line change @@ -40,11 +40,11 @@ class _SerialAlreadyDisposed extends Error {
40
40
String toString () => "An instance of $_type has already been disposed" ;
41
41
}
42
42
43
- /// A [SerialDisposable] that constains an underlying stream subscription.
44
- class StreamSubscriptionSerialDisposable
45
- extends SerialDisposable <StreamSubscription > {
43
+ /// A [SerialDisposable] that contains an underlying stream subscription.
44
+ class StreamSubscriptionSerialDisposable < T >
45
+ extends SerialDisposable <StreamSubscription < T > > {
46
46
StreamSubscriptionSerialDisposable ()
47
- : super ((StreamSubscription subscription) async {
47
+ : super ((StreamSubscription < T > subscription) async {
48
48
await subscription.cancel ();
49
49
return const Unit ();
50
50
});
You can’t perform that action at this time.
0 commit comments