ChangeNotifierProxyProvider2<T, T2, R extends ChangeNotifier> constructor

ChangeNotifierProxyProvider2<T, T2, R extends ChangeNotifier>({Key key, @required ValueBuilder<R> initialBuilder, @required ProxyProviderBuilder2<T, T2, R> builder, Widget child })

Initializes key for subclasses.

Implementation

ChangeNotifierProxyProvider2({
  Key key,
  @required ValueBuilder<R> initialBuilder,
  @required ProxyProviderBuilder2<T, T2, R> builder,
  Widget child,
}) : super(
        key: key,
        initialBuilder: initialBuilder,
        builder: builder,
        dispose: ChangeNotifierProvider._disposer,
        child: child,
      );