When I use the CookieManager function of dio_cookie_manager plugin into the page of included flutter_inappwebview plugin, I got the errors:
The argument type 'CookieManager' can't be assigned to the parameter type 'interceptors'
and
'CookieManager' isn't a function.
How can I use both plugins with separate Cookiemanager?
to avoid such conflicts, make sure that you use
import '...' as customName
.For example;
in that case, you can use it like
so you can avoid conflicts with other packages as well.