directionsLanguage property

String directionsLanguage

Directions language e.g. "en-US".

The ISO language code of the directions language to be set. If an unsupported language is set, an exception will occur at solve time in ClosestFacilityTask.solveClosestFacility method.

Implementation

String get directionsLanguage {
  final stringHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_ClosestFacilityParameters_getDirectionsLanguage(
        _handle, errorHandler);
  });
  return stringHandle.toDartString();
}
void directionsLanguage=(String value)

Implementation

set directionsLanguage(String value) {
  final coreValue = _CString(value);
  _withThrowingErrorHandler((errorHandler) {
    runtimecore.RT_ClosestFacilityParameters_setDirectionsLanguage(
        _handle, coreValue.bytes, errorHandler);
  });
}