Literals get type annotations.

As per the recent fix to the `always_specify_types` lint (https://github.com/dart-lang/linter/issues/199), literal maps and lists are now expected to be explicitly typed.

Running that lint on the repo identifies quite a few spots to update.  This focuses on `flutter_driver` and `flutter_sprites` (somewhat arbitrarily) but the changes are fairly representative.

Note there are a number of places where I made a quick judgement on how specific to make the types.  Feedback on those is welcome.  (Especially as we move forward with more.)
This commit is contained in:
pq
2016-05-04 09:18:31 -07:00
parent 1e093701b7
commit bcede8dffb
11 changed files with 54 additions and 54 deletions

View File

@@ -92,7 +92,7 @@ class NineSliceSprite extends NodeWithSize with SpritePaint {
if (_isDirty) {
// Calcuate vertices and indices.
_vertices = [
_vertices = <Point>[
Point.origin,
];