initWithString$1 method

NSAttributedString initWithString$1(
  1. NSString str, {
  2. NSDictionary? attributes,
})

initWithString:attributes:

Implementation

NSAttributedString initWithString$1(
  NSString str, {
  NSDictionary? attributes,
}) {
  objc.checkOsVersionInternal(
    'NSAttributedString.initWithString:attributes:',
    iOS: (false, (3, 2, 0)),
    macOS: (false, (10, 0, 0)),
  );
  final $ret = _objc_msgSend_15qeuct(
    object$.ref.retainAndReturnPointer(),
    _sel_initWithString_attributes_,
    str.ref.pointer,
    attributes?.ref.pointer ?? ffi.nullptr,
  );
  return NSAttributedString.fromPointer($ret, retain: false, release: true);
}