Переглянути джерело

Prefer var

Because Dart != Java :)
Seth Ladd 8 роки тому
батько
коміт
16a03d0d60
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      README.md

+ 2 - 2
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:
 First, you should define a new `Router` object by initializing it as such:
 ```dart
 ```dart
-final Router router = new Router();
+final router = new Router();
 ```
 ```
 It may be convenient for you to store the router globally/statically so that
 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.
 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:
 After instantiating the router, you will need to define your routes and your route handlers:
 ```dart
 ```dart
-RouteHandler usersHandler = (Map<String, String> params) {
+var usersHandler = (Map<String, String> params) {
   return new UsersScreen(params["id"]);
   return new UsersScreen(params["id"]);
 };
 };