localizedAttributedStringForKey method

NSAttributedString localizedAttributedStringForKey(
  1. NSString key, {
  2. NSString? value,
  3. NSString? table,
})

localizedAttributedStringForKey:value:table:

iOS: introduced 15.0.0 macOS: introduced 12.0.0

Implementation

NSAttributedString localizedAttributedStringForKey(
  NSString key, {
  NSString? value,
  NSString? table,
}) {
  objc.checkOsVersionInternal(
    'NSBundle.localizedAttributedStringForKey:value:table:',
    iOS: (false, (15, 0, 0)),
    macOS: (false, (12, 0, 0)),
  );
  final $ret = _objc_msgSend_11spmsz(
    object$.ref.pointer,
    _sel_localizedAttributedStringForKey_value_table_,
    key.ref.pointer,
    value?.ref.pointer ?? ffi.nullptr,
    table?.ref.pointer ?? ffi.nullptr,
  );
  return NSAttributedString.fromPointer($ret, retain: true, release: true);
}