isValidLongitude static method

bool isValidLongitude(
  1. double lon
)

Validates longitude value Range: -180 to 180 degrees

Implementation

static bool isValidLongitude(double lon) => lon >= -180 && lon <= 180;