removeObserver method

void removeObserver(
  1. NSObject observer, {
  2. required NSString forKeyPath,
  3. required Pointer<Void> context,
})

removeObserver:forKeyPath:context:

Implementation

void removeObserver(
  objc.NSObject observer, {
  required objc.NSString forKeyPath,
  required ffi.Pointer<ffi.Void> context,
}) {
  objc.checkOsVersionInternal(
    'NSObject.removeObserver:forKeyPath:context:',
    iOS: (false, (5, 0, 0)),
    macOS: (false, (10, 7, 0)),
  );
  _objc_msgSend_1jed5jl(
    this.ref.pointer,
    _sel_removeObserver_forKeyPath_context_,
    observer.ref.pointer,
    forKeyPath.ref.pointer,
    context,
  );
}