addToBuilder static method
void
addToBuilder(
- ObjCProtocolBuilder builder, {
- required NSTextStorage? textStorage(),
- required void setTextStorage_(),
- required void processEditingForTextStorage_edited_range_changeInLength_invalidatedRange_(),
- required void performEditingTransactionForTextStorage_usingBlock_(
- NSTextStorage,
- ObjCBlock<
Void Function()>
- bool $keepIsolateAlive = true,
Adds the implementation of the NSTextStorageObserving 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 NSTextStorage? Function() textStorage,
required void Function(NSTextStorage?) setTextStorage_,
required void Function(
NSTextStorage,
NSTextStorageEditActions,
NSRange,
DartNSInteger,
NSRange,
)
processEditingForTextStorage_edited_range_changeInLength_invalidatedRange_,
required void Function(NSTextStorage, objc.ObjCBlock<ffi.Void Function()>)
performEditingTransactionForTextStorage_usingBlock_,
bool $keepIsolateAlive = true,
}) {
NSTextStorageObserving.textStorage.implement(builder, textStorage);
NSTextStorageObserving.setTextStorage_.implement(builder, setTextStorage_);
NSTextStorageObserving
.processEditingForTextStorage_edited_range_changeInLength_invalidatedRange_
.implement(
builder,
processEditingForTextStorage_edited_range_changeInLength_invalidatedRange_,
);
NSTextStorageObserving.performEditingTransactionForTextStorage_usingBlock_
.implement(
builder,
performEditingTransactionForTextStorage_usingBlock_,
);
builder.addProtocol($protocol);
}