From c98340522cd39b35f3688768c3cfbdcda1d2baa6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jesper=20Andr=C3=A9=20Lyngesen=20Pedersen?= Date: Tue, 20 Mar 2018 20:07:28 +0100 Subject: [PATCH] fix return type for router.generator --- lib/src/router.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/router.dart b/lib/src/router.dart index c00daa7..85dc78c 100644 --- a/lib/src/router.dart +++ b/lib/src/router.dart @@ -160,7 +160,7 @@ class Router { /// Route generation method. This function can be used as a way to create routes on-the-fly /// if any defined handler is found. It can also be used with the [MaterialApp.onGenerateRoute] /// property as callback to create routes that can be used with the [Navigator] class. - Route generator(RouteSettings routeSettings) { + Route generator(RouteSettings routeSettings) { RouteMatch match = matchRoute(null, routeSettings.name, routeSettings: routeSettings); return match.route; }