randomPoint method

Point<double> randomPoint()

Get a random point on the canvas

Implementation

Point<double> randomPoint() {
  return Point(
      _rng.nextDouble() * size.width, _rng.nextDouble() * size.height);
}