addToBuilder static method
void
addToBuilder(
- ObjCProtocolBuilder builder, {
- void textStorage_willProcessEditing_range_changeInLength_()?,
- void textStorage_didProcessEditing_range_changeInLength_()?,
- bool $keepIsolateAlive = true,
Adds the implementation of the NSTextStorageDelegate 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(
NSTextStorage,
NSTextStorageEditActions,
NSRange,
DartNSInteger,
)?
textStorage_willProcessEditing_range_changeInLength_,
void Function(
NSTextStorage,
NSTextStorageEditActions,
NSRange,
DartNSInteger,
)?
textStorage_didProcessEditing_range_changeInLength_,
bool $keepIsolateAlive = true,
}) {
NSTextStorageDelegate.textStorage_willProcessEditing_range_changeInLength_
.implement(
builder,
textStorage_willProcessEditing_range_changeInLength_,
);
NSTextStorageDelegate.textStorage_didProcessEditing_range_changeInLength_
.implement(
builder,
textStorage_didProcessEditing_range_changeInLength_,
);
builder.addProtocol($protocol);
}