flutter_boost
flutter_boost copied to clipboard
4.2.0版本 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;
});
这个方法报错,烦请完善开发文档
需要返回一个Future
state.removeListener = BoostChannel.instance.addEventListener("yourEventKey", (key, arguments) { ///deal with your event here return Future(() => null); });
state.removeListener = BoostChannel.instance.addEventListener("yourEventKey", (key, arguments) { ///deal with your event here return Future(() => null); });
启动后,页面展示不出来