Given a ProxyProvider like the following,
MultiProvider(
providers: [
ChangeNotifierProvider<MyModel>(
builder: (context) => MyModel(),
),
ProxyProvider<MyModel, AnotherModel>(
builder: (context, myModel, anotherModel) => AnotherModel(myModel),
),
],
what is the third input parameter (anotherModel
) in the builder function? The documentation doesn't explain it. If it is the same type as the returned function, why is it an input parameter?