getRectangleByTileSize method
Implementation
Rectangle getRectangleByTileSize(double tileSize) {
final left = (this.left / tileSize).floorToDouble();
final top = (this.top / tileSize).floorToDouble();
final width = (this.width / tileSize).ceilToDouble();
final height = (this.height / tileSize).ceilToDouble();
return Rectangle(
left,
top,
width,
height,
);
}