请帮助我将其转换为新版本,其中包含create和update作为同一软件包中ChangeNotifierProxyProvider的必需参数。
您必须按照以下方式更改ChangeNotifierProxyProvider。
ChangeNotifierProxyProvider<Auth, Products>( create: (_) => Products(), update: (context, auth, anotherProducts) => anotherProducts..update(auth), ),