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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With