fix return type for router.generator

This commit is contained in:
Jesper André Lyngesen Pedersen 2018-03-20 20:07:28 +01:00
parent 35a2254668
commit c98340522c
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}