getMapSize method

  1. @override
Size getMapSize()
override

Implementation

@override
Size getMapSize() {
  double height = 0;
  double width = 0;

  this.tiles.forEach((tile) {
    if (tile.right > width) width = tile.right;
    if (tile.bottom > height) height = tile.bottom;
  });

  return Size(width, height);
}