ListenableProxyProvider2<T, T2, R extends Listenable?> constructor

ListenableProxyProvider2<T, T2, R extends Listenable?>({
  1. Key? key,
  2. Create<R>? create,
  3. required ProxyProviderBuilder2<T, T2, R> update,
  4. Dispose<R>? dispose,
  5. bool? lazy,
  6. TransitionBuilder? builder,
  7. Widget? child,
})

Initializes key for subclasses.

Implementation

ListenableProxyProvider2({
  Key? key,
  Create<R>? create,
  required ProxyProviderBuilder2<T, T2, R> update,
  Dispose<R>? dispose,
  bool? lazy,
  TransitionBuilder? builder,
  Widget? child,
}) : super(
        key: key,
        create: create,
        lazy: lazy,
        builder: builder,
        update: (context, previous) => update(
          context,
          Provider.of(context),
          Provider.of(context),
          previous,
        ),
        dispose: dispose,
        child: child,
      );