Coordinate.random constructor
Coordinate.random()
Implementation
factory Coordinate.random() {
return Coordinate(
Random().nextDouble() * 180 - 90, Random().nextDouble() * 360 - 180);
}
factory Coordinate.random() {
return Coordinate(
Random().nextDouble() * 180 - 90, Random().nextDouble() * 360 - 180);
}