4.2.0版本 按照文档接入,在flutter接收事件的方法,报错:
removeListener = BoostChannel.instance.addEventListener("yourEventKey", (key, arguments) {
///deal with your event here
return;
});
这个方法报错,烦请完善开发文档
4.2.0版本 按照文档接入,在flutter接收事件的方法,报错:
removeListener = BoostChannel.instance.addEventListener("yourEventKey", (key, arguments) {
///deal with your event here
return;
});
这个方法报错,烦请完善开发文档
3条答案
按热度按时间efzxgjgh1#
需要返回一个Future
gab6jxml2#
state.removeListener = BoostChannel.instance.addEventListener("yourEventKey", (key, arguments) {
///deal with your event here
return Future(() => null);
});
lf3rwulv3#
state.removeListener = BoostChannel.instance.addEventListener("yourEventKey", (key, arguments) {
///deal with your event here
return Future(() => null);
});
启动后,页面展示不出来