addProtocol method

void addProtocol(
  1. Protocol protocol
)

Add the protocol to this implementation.

This essentially declares that the implementation implements the protocol. There is no automatic check that ensures that the implementation actually implements all the methods of the protocol.

Implementation

void addProtocol(objc.Protocol protocol) => _builder.addProtocol(protocol);