StateNotifierBuilder<T> constructor

const StateNotifierBuilder<T>({
  1. Key? key,
  2. required ValueWidgetBuilder<T> builder,
  3. required StateNotifier<T> stateNotifier,
  4. Widget? child,
})

Listens to a StateNotifier and use it builds a widget tree based on the latest value.

This is similar to ValueListenableBuilder for ValueNotifier.

Implementation

const StateNotifierBuilder({
  Key? key,
  required this.builder,
  required this.stateNotifier,
  this.child,
}) : super(key: key);