addToBuilder static method
void
addToBuilder(
- ObjCProtocolBuilder builder, {
- required void observeValueForKeyPath_ofObject_change_context_(),
- bool $keepIsolateAlive = true,
Adds the implementation of the Observer protocol to an existing objc.ObjCProtocolBuilder.
Note: You cannot call this method after you have called builder.build.
Implementation
static void addToBuilder(
objc.ObjCProtocolBuilder builder, {
required void Function(
NSString,
objc.ObjCObject,
NSDictionary,
ffi.Pointer<ffi.Void>,
)
observeValueForKeyPath_ofObject_change_context_,
bool $keepIsolateAlive = true,
}) {
Observer$Builder.observeValueForKeyPath_ofObject_change_context_.implement(
builder,
observeValueForKeyPath_ofObject_change_context_,
);
builder.addProtocol($protocol);
}