Consumer2<A extends Object, B extends Object> constructor

const Consumer2<A extends Object, B extends Object>({
  1. Key? key,
  2. required Widget builder(
    1. BuildContext context,
    2. A a,
    3. B b
    ),
})

Creates a widget that delegates its build to a callback. The callback will be called with values retrieved from Provider.

The builder argument must not be null.

Implementation

const Consumer2({
  Key? key,
  required this.builder,
})   : assert(builder != null),
      super(key: key);