round method
Create new CustomPoint where x and y is rounded to int
Implementation
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);
}
Create new CustomPoint where x and y is rounded to int
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);
}