initForKeyPath method

DOBJCObservation initForKeyPath(
  1. NSString keyPath, {
  2. required ObjCObject ofObject,
  3. required Observer withObserver,
  4. required int options,
  5. required Pointer<Void> context,
})

initForKeyPath:ofObject:withObserver:options:context:

Implementation

DOBJCObservation initForKeyPath(
  NSString keyPath, {
  required objc.ObjCObject ofObject,
  required Observer withObserver,
  required int options,
  required ffi.Pointer<ffi.Void> context,
}) {
  final $ret = _objc_msgSend_1jiinfj(
    object$.ref.retainAndReturnPointer(),
    _sel_initForKeyPath_ofObject_withObserver_options_context_,
    keyPath.ref.pointer,
    ofObject.ref.pointer,
    withObserver.ref.pointer,
    options,
    context,
  );
  return DOBJCObservation.fromPointer($ret, retain: false, release: true);
}