Consumer<T> constructor

Consumer<T>({
  1. Key? key,
  2. required Widget builder(
    1. BuildContext context,
    2. T value,
    3. Widget? child
    ),
  3. Widget? child,
})

Consumes a Provider<T>

Implementation

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