localeWithLocaleIdentifier static method

NSLocale localeWithLocaleIdentifier(
  1. NSString ident
)

localeWithLocaleIdentifier:

Implementation

static NSLocale localeWithLocaleIdentifier(NSString ident) {
  objc.checkOsVersionInternal(
    'NSLocale.localeWithLocaleIdentifier:',
    iOS: (false, (4, 0, 0)),
    macOS: (false, (10, 6, 0)),
  );
  final $ret = _objc_msgSend_1sotr3r(
    _class_NSLocale,
    _sel_localeWithLocaleIdentifier_,
    ident.ref.pointer,
  );
  return NSLocale.fromPointer($ret, retain: true, release: true);
}