Skip to content

Commit 35571f4

Browse files
committed
analysis fix
1 parent 4032902 commit 35571f4

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

lib/src/matchers.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Matcher isRoute<T extends Object?>({
2727
}) {
2828
// Remove once `named` argument is removed.
2929
if (whereName == null && named != null) {
30+
// Nullable parameter so assignment is OK
3031
// ignore: parameter_assignments
3132
whereName = equals(named);
3233
}

test/src/matchers_test.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,11 @@ void main() {
5151
group('constructor', () {
5252
test('wraps deprecated name value in equals matcher', () {
5353
expect(
54+
// Specifically testing deprecated member here
5455
// ignore: deprecated_member_use_from_same_package
5556
isRoute(named: '/test'),
5657
isA<dynamic>().having(
58+
// Expecting Dynamic here
5759
// ignore: avoid_dynamic_calls
5860
(dynamic m) => m.whereName,
5961
'whereName',

0 commit comments

Comments
 (0)