我不是iOS或Swift方面的专家。我想调用一个类的两个匿名函数。他们就像听众。下面是我的代码:
let streamChannel = FlutterEventChannel(name: "com.sagar.no_plugins/channelDemo", binaryMessenger: controller)
streamChannel.setStreamHandler({
//onCancel(args: Any?)->FlutterError
//onListen(args: Any?, sink: EventSink?) -> FlutterError
})
如何调用我已评论的这两种方法?