ValueListenableProvider<T>.value constructor

const ValueListenableProvider<T>.value({
  1. required ValueListenable<T> value,
  2. Key? key,
  3. UpdateShouldNotify<T>? updateShouldNotify,
  4. Widget? child,
})

Provides the value of value, a listenable made elsewhere.

Implementation

const ValueListenableProvider.value({
  required ValueListenable<T> value,
  super.key,
  this.updateShouldNotify,
  super.child,
}) : listenable = value;