longitude method

double longitude({
  1. int? decimalAccuracy,
})

Returns the double longitude with an optional decimal accuracy

Implementation

double longitude({int? decimalAccuracy}) {
  if (decimalAccuracy == null) return _longitude;
  return double.parse(_longitude.toStringAsFixed(decimalAccuracy));
}