From 16a03d0d6072357b1fff5b00ee5885db3fc13644 Mon Sep 17 00:00:00 2001 From: Seth Ladd Date: Mon, 15 May 2017 08:51:29 -0700 Subject: [PATCH] Prefer var Because Dart != Java :) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b831189..8c2e108 100644 --- a/README.md +++ b/README.md @@ -41,14 +41,14 @@ There is a pretty sweet example project in the `example` folder. Check it out. O First, you should define a new `Router` object by initializing it as such: ```dart -final Router router = new Router(); +final router = new Router(); ``` It may be convenient for you to store the router globally/statically so that you can access the router in other areas in your application. After instantiating the router, you will need to define your routes and your route handlers: ```dart -RouteHandler usersHandler = (Map params) { +var usersHandler = (Map params) { return new UsersScreen(params["id"]); };