getLocale method

String getLocale()

Return the locale that was used to construct this duration formatter object. If the locale was not given as parameter to the constructor, this method returns the default locale of the system.

Implementation

String getLocale() {
  String result = '';
  final String formatOptions = toJsonString();
  final String jscode1 =
      'new DurationFmt($formatOptions).getLocale().toString()';
  result = ILibJS.instance.evaluate(jscode1).stringResult;
  return result;
}