latitude method

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

Returns the double latitude with an optional decimal accuracy

Implementation

double latitude({int? decimalAccuracy}) {
  if (decimalAccuracy == null)
    return _latitude;
  else
    return double.parse(_latitude.toStringAsFixed(decimalAccuracy));
}