round method

CustomPoint<num> round()

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);
}