initWithFormat$1 method
NSAttributedString
initWithFormat$1(
- NSAttributedString format, {
- required int options,
- NSLocale? locale,
- required NSDictionary context,
initWithFormat:options:locale:context:
iOS: introduced 17.0.0 macOS: introduced 14.0.0
Implementation
NSAttributedString initWithFormat$1(
NSAttributedString format, {
required int options,
NSLocale? locale,
required NSDictionary context,
}) {
objc.checkOsVersionInternal(
'NSAttributedString.initWithFormat:options:locale:context:',
iOS: (false, (17, 0, 0)),
macOS: (false, (14, 0, 0)),
);
final $ret = _objc_msgSend_3fn4ca(
object$.ref.retainAndReturnPointer(),
_sel_initWithFormat_options_locale_context_,
format.ref.pointer,
options,
locale?.ref.pointer ?? ffi.nullptr,
context.ref.pointer,
);
return NSAttributedString.fromPointer($ret, retain: false, release: true);
}