Update README to reflect dart best practices (#3 from sethladd/patch-1)

Dart style guide prefers `var` over concrete definitions
This commit is contained in:
Luke 2017-05-15 08:55:29 -07:00 committed by GitHub
commit 07fa2894a7
1 changed files with 2 additions and 2 deletions

View File

@ -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<String, String> params) {
var usersHandler = (Map<String, String> params) {
return new UsersScreen(params["id"]);
};