implementMethod method
void
implementMethod(
- Pointer<
ObjCSelector> sel, - Pointer<
Char> signature, - Pointer<
Void> trampoline, - ObjCBlockBase block,
Add a method implementation to the protocol.
It is not recommended to call this method directly. Instead, use the implement methods on ObjCProtocolMethod and its subclasses.
Note: You cannot call this method after you have called build.
Implementation
void implementMethod(
Pointer<r.ObjCSelector> sel,
Pointer<Char> signature,
Pointer<Void> trampoline,
ObjCBlockBase block,
) {
if (_built) {
throw StateError('Protocol is already built');
}
_builder.implementMethod(
sel,
withBlock: block.ref.pointer.cast(),
withTrampoline: trampoline,
withSignature: signature,
);
}