ListenableProxyProvider3<T, T2, T3, R extends Listenable> constructor

ListenableProxyProvider3<T, T2, T3, R extends Listenable>(
  1. {Key key,
  2. @required Create<R> create,
  3. @required ProxyProviderBuilder3<T, T2, T3, R> update,
  4. Dispose<R> dispose,
  5. bool lazy,
  6. Widget child}
)

Initializes key for subclasses.

Implementation

ListenableProxyProvider3({
  Key key,
  @required Create<R> create,
  @required ProxyProviderBuilder3<T, T2, T3, R> update,
  Dispose<R> dispose,
  bool lazy,
  Widget child,
})  : assert(create != null || update != null),
      super(
        key: key,
        create: create,
        lazy: lazy,
        update: (context, previous) => update(
          context,
          Provider.of(context),
          Provider.of(context),
          Provider.of(context),
          previous,
        ),
        dispose: dispose,
        child: child,
      );