StateNotifierBuilder<T> constructor
const
StateNotifierBuilder<T> ({
- Key? key,
- required ValueWidgetBuilder<
T> builder, - required StateNotifier<
T> stateNotifier, - 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);