I would like to use firebase analytics but keep getting this error, I upgrade and cleaned but still has the same error. any idea how I can solve it? thanks
static FirebaseAnalytics analytics = FirebaseAnalytics();
FirebaseAnalytics is underlined
I solve it by removing the parentheses and adding .instance
.
static FirebaseAnalytics analytics = FirebaseAnalytics.instance;
see documentation . Thanks
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.