ValueNotifier<T> constructor Null safety

ValueNotifier<T>(
  1. T _value
)

Creates a ChangeNotifier that wraps this value.

Implementation

ValueNotifier(this._value) {
  if (kFlutterMemoryAllocationsEnabled) {
    MemoryAllocations.instance.dispatchObjectCreated(
      library: _flutterFoundationLibrary,
      className: '$ValueNotifier',
      object: this,
    );
  }
  _creationDispatched = true;
}