1
0
mirror of https://github.com/flutter/samples.git synced 2026-04-07 04:02:13 +00:00

General cleanup: consistent quoting, sort dependencies, (#859)

single quotes everywhere
fix comment references
This commit is contained in:
Kevin Moore
2021-08-02 10:57:30 -07:00
committed by GitHub
parent 89093cac71
commit b0745a00d4
10 changed files with 29 additions and 33 deletions

View File

@@ -25,8 +25,10 @@ class TemplateRouteParser extends RouteInformationParser<ParsedRoute> {
TemplateRouteParser({
/// The list of allowed path templates (['/', '/users/:id'])
required List<String> allowedPaths,
/// The initial route
String? initialRoute = '/',
/// [RouteGuard] used to redirect.
this.guard,
}) : initialRoute =

View File

@@ -18,8 +18,7 @@ class RouteState extends ChangeNotifier {
TemplateRouteParser parser;
ParsedRoute _route;
RouteState(this.parser)
: _route = parser.initialRoute;
RouteState(this.parser) : _route = parser.initialRoute;
ParsedRoute get route => _route;