Skip to content

Commit 500d469

Browse files
committed
Migrate away from deprecated strong-mode analysis options
1 parent f474fe7 commit 500d469

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

analysis_options.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
include: package:flutter_lints/flutter.yaml
22

33
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
78
exclude:
89
- "bin/cache/**"
910
- "**/*.freezed.dart"

packages/flutter_reactive_ble/lib/src/rx_ext/serial_disposable.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ class _SerialAlreadyDisposed extends Error {
4040
String toString() => "An instance of $_type has already been disposed";
4141
}
4242

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>> {
4646
StreamSubscriptionSerialDisposable()
47-
: super((StreamSubscription subscription) async {
47+
: super((StreamSubscription<T> subscription) async {
4848
await subscription.cancel();
4949
return const Unit();
5050
});

0 commit comments

Comments
 (0)