addToBuilder static method
void
addToBuilder(
- ObjCProtocolBuilder builder, {
- NSTouchBarItem? touchBar_makeItemForIdentifier_()?,
- bool $keepIsolateAlive = true,
Adds the implementation of the NSTouchBarDelegate 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, {
NSTouchBarItem? Function(NSTouchBar, DartNSTouchBarItemIdentifier)?
touchBar_makeItemForIdentifier_,
bool $keepIsolateAlive = true,
}) {
NSTouchBarDelegate.touchBar_makeItemForIdentifier_.implement(
builder,
touchBar_makeItemForIdentifier_,
);
builder.addProtocol($protocol);
}