Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.2.0版本 removeListener = BoostChannel.instance.addEventListener("yourEventKey", (key, arguments) { ///deal with your event here return; }); #1771

Open
LiFuPeng opened this issue Dec 5, 2022 · 3 comments

Comments

@LiFuPeng
Copy link

LiFuPeng commented Dec 5, 2022

4.2.0版本 按照文档接入,在flutter接收事件的方法,报错:
removeListener = BoostChannel.instance.addEventListener("yourEventKey", (key, arguments) {
///deal with your event here

  return;
});

这个方法报错,烦请完善开发文档

@lanyuzx
Copy link

lanyuzx commented Feb 7, 2023

需要返回一个Future

@Ldies
Copy link

Ldies commented Feb 21, 2023

state.removeListener = BoostChannel.instance.addEventListener("yourEventKey", (key, arguments) {
///deal with your event here
return Future(() => null);
});

@maolinding
Copy link

state.removeListener = BoostChannel.instance.addEventListener("yourEventKey", (key, arguments) {
///deal with your event here
return Future(() => null);
});

启动后,页面展示不出来

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants