Consumer2<A, B> constructor Null safety

Consumer2<A, B>(
  1. {Key? key,
  2. required Widget builder(
    1. BuildContext context,
    2. A value,
    3. B value2,
    4. Widget? child
    ),
  3. Widget? child}
)

Consumes a Provider<T>

Implementation

Consumer2({
  Key? key,
  required this.builder,
  Widget? child,
}) : super(key: key, child: child);