addToBuilder static method

void addToBuilder(
  1. ObjCProtocolBuilder builder, {
  2. void speechRecognizer_didRecognizeCommand_(
    1. NSSpeechRecognizer,
    2. NSString
    )?,
  3. bool $keepIsolateAlive = true,
})

Adds the implementation of the NSSpeechRecognizerDelegate 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(NSSpeechRecognizer, objc.NSString)?
  speechRecognizer_didRecognizeCommand_,
  bool $keepIsolateAlive = true,
}) {
  NSSpeechRecognizerDelegate.speechRecognizer_didRecognizeCommand_.implement(
    builder,
    speechRecognizer_didRecognizeCommand_,
  );
  builder.addProtocol($protocol);
}