ModelNotifier<T>.inherit constructor

const ModelNotifier<T>.inherit(
  1. Symbol dataKey,
  2. ValueNotifier<T> notifier, {
  3. Key? key,
  4. required Widget? child,
})

Creates a single ModelNotifier widget.

Implementation

const ModelNotifier.inherit(this.dataKey, this.notifier,
    {super.key, required this.child});