NSAttributedString.fromPointer constructor

NSAttributedString.fromPointer(
  1. Pointer<ObjCObjectImpl> other, {
  2. bool retain = false,
  3. bool release = false,
})

Constructs a NSAttributedString that wraps the given raw object pointer.

Implementation

NSAttributedString.fromPointer(
  ffi.Pointer<objc.ObjCObjectImpl> other, {
  bool retain = false,
  bool release = false,
}) : object$ = objc.ObjCObject(other, retain: retain, release: release) {
  objc.checkOsVersionInternal(
    'NSAttributedString',
    iOS: (false, (3, 2, 0)),
    macOS: (false, (10, 0, 0)),
  );
  assert(isA(object$));
}