drawInRect method

void drawInRect(
  1. CGRect rect, {
  2. NSDictionary? withAttributes,
})

drawInRect:withAttributes:

Implementation

void drawInRect(objc.CGRect rect, {objc.NSDictionary? withAttributes}) {
  objc.checkOsVersionInternal(
    'NSString.drawInRect:withAttributes:',
    iOS: (false, (7, 0, 0)),
    macOS: (false, (10, 0, 0)),
  );
  _objc_msgSend_f227js(
    this.ref.pointer,
    _sel_drawInRect_withAttributes_,
    rect,
    withAttributes?.ref.pointer ?? ffi.nullptr,
  );
}