zileyuan / umeng_analytics_push

Umeng Analytics&Push Flutter Plugins
MIT License
30 stars 21 forks source link

type '(String) => Null' is not a subtype of type '((dynamic) => void)?' #4

Closed ultrapower8 closed 4 years ago

ultrapower8 commented 4 years ago

UmengAnalyticsPush.addPushCustomMessageCallback((custom) { print("custom:{$custom}"); }); 运行到此处报错 I/NAccs.MsgDistribute(10345): handBroadCastMsg command:103

══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════ The following _TypeError was thrown building AppWrapper(state: _AppWrapperState#c48d2): type '(String) => Null' is not a subtype of type '((dynamic) => void)?'

zileyuan commented 4 years ago

你这个出现空指针,你的代码要贴全

zileyuan commented 4 years ago

CLOSE