getStartPosition method
Implementation
Vector2 getStartPosition() {
try {
double x = this.tiles.first.left;
double y = this.tiles.first.top;
this.tiles.forEach((tile) {
if (tile.left < x) x = tile.left;
if (tile.top < y) y = tile.top;
});
return Vector2(x, y);
} catch (e) {
return Vector2.zero();
}
}