addToBuilder static method
void
addToBuilder(
- ObjCProtocolBuilder builder, {
- void stream_handleEvent_()?,
- bool $keepIsolateAlive = true,
Adds the implementation of the NSStreamDelegate 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, {
void Function(NSStream, int)? stream_handleEvent_,
bool $keepIsolateAlive = true,
}) {
NSStreamDelegate$Builder.stream_handleEvent_.implement(
builder,
stream_handleEvent_,
);
builder.addProtocol($protocol);
}