Create new CustomPoint where x and y is rounded to int
CustomPoint
CustomPoint round() { final x = this.x is double ? this.x.round() : this.x; final y = this.y is double ? this.y.round() : this.y; return CustomPoint(x, y); }