round method

CustomPoint<num> round()

Implementation

CustomPoint round() {
  var x = this.x is double ? this.x.round() : this.x;
  var y = this.y is double ? this.y.round() : this.y;
  return CustomPoint(x, y);
}