Here is current generated code:
public static void setup(BinaryMessenger binaryMessenger, VideoPlayerApi api) {
{
BasicMessageChannel<Object> channel =
new BasicMessageChannel<Object>(
binaryMessenger,
"dev.flutter.pigeon.VideoPlayerApi.initialize",
new StandardMessageCodec());
channel.setMessageHandler(
new BasicMessageChannel.MessageHandler<Object>() {
public void onMessage(Object message, BasicMessageChannel.Reply<Object> reply) {
HashMap<String, HashMap> wrapped = new HashMap<String, HashMap>();
try {
api.initialize();
wrapped.put("result", null);
} catch (Exception exception) {
wrapped.put("error", wrapError(exception));
}
reply.reply(wrapped);
}
});
}
If api is null it should just set the channel's messageHandler to null.
related issue: #56996
Here is current generated code:
If
apiis null it should just set the channel's messageHandler to null.related issue: #56996