Skip to content

Commit 2084742

Browse files
authored
RouteState: make field final private (#888)
1 parent c9688ca commit 2084742

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

navigation_and_routing/lib/src/routing/route_state.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ import 'parser.dart';
1515
/// RouteStateScope.of(context).go('/book/2');
1616
/// ```
1717
class RouteState extends ChangeNotifier {
18-
TemplateRouteParser parser;
18+
final TemplateRouteParser _parser;
1919
ParsedRoute _route;
2020

21-
RouteState(this.parser) : _route = parser.initialRoute;
21+
RouteState(this._parser) : _route = _parser.initialRoute;
2222

2323
ParsedRoute get route => _route;
2424

@@ -32,7 +32,7 @@ class RouteState extends ChangeNotifier {
3232

3333
Future<void> go(String route) async {
3434
this.route =
35-
await parser.parseRouteInformation(RouteInformation(location: route));
35+
await _parser.parseRouteInformation(RouteInformation(location: route));
3636
}
3737
}
3838

0 commit comments

Comments
 (0)