rangeForUserTextChange property

NSRange get rangeForUserTextChange

rangeForUserTextChange

Implementation

NSRange get rangeForUserTextChange {
  objc.checkOsVersionInternal(
    'NSTextView.rangeForUserTextChange',
    iOS: (true, null),
  );
  final _ptr = pkg_ffi.calloc<NSRange>();
  objc.useMsgSendVariants
      ? _objc_msgSend_1u11dbbStret(
          _ptr,
          this.ref.pointer,
          _sel_rangeForUserTextChange,
        )
      : _ptr.ref = _objc_msgSend_1u11dbb(
          this.ref.pointer,
          _sel_rangeForUserTextChange,
        );
  final _finalizable = _ptr.cast<ffi.Uint8>().asTypedList(
    ffi.sizeOf<NSRange>(),
    finalizer: pkg_ffi.calloc.nativeFree,
  );
  return ffi.Struct.create<NSRange>(_finalizable);
}