Преглед на файлове

Merge pull request #43 from Codenaut/master

fix return type for router.generator
Luke преди 7 години
родител
ревизия
12cb5317db
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      lib/src/router.dart

+ 1 - 1
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<Null> generator(RouteSettings routeSettings) {
+  Route<dynamic> generator(RouteSettings routeSettings) {
     RouteMatch match = matchRoute(null, routeSettings.name, routeSettings: routeSettings);
     return match.route;
   }