Consumer2<A extends Object, B extends Object> constructor
const
Consumer2<A extends Object, B extends Object> ({
- Key? key,
- required Widget builder(
- BuildContext context,
- A a,
- 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);