orthographyCheckingResultWithRange static method

NSTextCheckingResult orthographyCheckingResultWithRange(
  1. NSRange range, {
  2. required NSOrthography orthography,
})

orthographyCheckingResultWithRange:orthography:

Implementation

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