Skip to content

Commit 2263a13

Browse files
committed
analyzer fixes
1 parent c7b2651 commit 2263a13

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/mockingjay.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// A package that makes it easy to mock, test and verify
22
/// navigation calls in Flutter.
3-
library mockingjay;
3+
library;
44

55
export 'package:mocktail/mocktail.dart';
66

lib/src/matchers.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class _RouteMatcher<T> extends Matcher {
9494
hasMaintainStateMatcher ||
9595
hasFullscreenDialogMatcher;
9696

97-
/// Takes an [input] string that looks like "FooBarRoute<MyType>" and extracts
97+
/// Takes an [input] string that looks like "FooBarRoute\<MyType\>" and extracts
9898
/// the part "MyType".
9999
///
100100
/// If the `Route<` part cannot be found, it returns the input string

lib/src/mock_navigator.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class _MockMaterialPageRoute extends MaterialPageRoute<void> {
1717
// By the time the setState is called, the attribute is already set
1818
// so we just ignore the error and the hack will do its job.
1919
state.insert(entry);
20-
} catch (_) {}
20+
} on Exception catch (_) {}
2121
// Set mounted back to false to make sure the state doesn't get
2222
// marked as dirty during OverlayEntry.remove().
2323
state._mounted = false;

0 commit comments

Comments
 (0)