Index: samples/dartcombat/grids.dart |
diff --git a/samples/dartcombat/grids.dart b/samples/dartcombat/grids.dart |
index 2f5d3ba82144b194bfcfe64c3ab13dea1e081d03..4a4c7ffee9374d6f3aca325cef6a3089183a0b58 100644 |
--- a/samples/dartcombat/grids.dart |
+++ b/samples/dartcombat/grids.dart |
@@ -21,9 +21,9 @@ class Boat { |
class BoatGrid { |
List<List<Boat>> boatMap; |
- BoatGrid() : boatMap = new List.fixedLength(Constants.SIZE) { |
+ BoatGrid() : boatMap = new List(Constants.SIZE) { |
for (int i = 0; i < Constants.SIZE; i++) { |
- boatMap[i] = new List.fixedLength(10); |
+ boatMap[i] = new List(10); |
} |
} |
@@ -61,9 +61,9 @@ class GridState { |
List<List<int>> cells; |
GridState() |
- : cells = new List.fixedLength(Constants.SIZE) { |
+ : cells = new List(Constants.SIZE) { |
for (int i = 0; i < Constants.SIZE; i++) { |
- cells[i] = new List.fixedLength(10); |
+ cells[i] = new List(10); |
} |
} |