Consumer<T> constructor
const
Consumer<T> ({
- Key? key,
- required Watchable<
T> watchable, - required ValueWidgetBuilder<
T> builder, - Widget? child,
Creates a Consumer.
The watchable and builder arguments must not be null. The child is optional but is good practice to use if part of the widget subtree does not depend on the value of the watchable.
Implementation
const Consumer({
Key? key,
required this.watchable,
required this.builder,
this.child,
}) : super(key: key);