grammarCheckingResultWithRange static method

NSTextCheckingResult grammarCheckingResultWithRange(
  1. NSRange range, {
  2. required NSArray details,
})

grammarCheckingResultWithRange:details:

Implementation

static NSTextCheckingResult grammarCheckingResultWithRange(
  NSRange range, {
  required objc.NSArray details,
}) {
  objc.checkOsVersionInternal(
    'NSTextCheckingResult.grammarCheckingResultWithRange:details:',
    iOS: (false, (4, 0, 0)),
    macOS: (false, (10, 6, 0)),
  );
  final _ret = _objc_msgSend_bstjp9(
    _class_NSTextCheckingResult,
    _sel_grammarCheckingResultWithRange_details_,
    range,
    details.ref.pointer,
  );
  return NSTextCheckingResult.castFromPointer(
    _ret,
    retain: true,
    release: true,
  );
}