getRegionName method

String? getRegionName()

Return the name of the locale's region in English.

Implementation

String? getRegionName() {
  final String jscode1 = 'new LocaleInfo("$locale").getRegionName()';
  final String result = ILibJS.instance.evaluate(jscode1).stringResult;
  return result.isNotEmpty ? result : null;
}