I have a MultiProvider with a list of one ChangeNotifierProvider for AuthProvider (this a class with NotifierProvider) and a ChangeNotifierProxyProvider for <AuthProvider, AppProvider>.
As you can see, in the update closure of the ChangeNotifierProxyProvider i am getting an error that says:
"The return type 'AppProvider?' isn't a 'AppProvider', as required by the closure's context.
The method 'update' can't be unconditionally invoked because the receiver can be 'null'.
Try making the call conditional (using '?.') or adding a null check to the target ('!')."
And the type of parameter received in the closure is AppProvider?.
If I add the null check ! or conditional access ? to the object's update() method call, passes the linter bat throws a compile time error.
What am I doing wrong?