State<T> constructor

State<T>({
  1. required T initValue,
  2. T? newValue,
})

Implementation

State({required this.initValue, T? newValue})
    : _currentValue = newValue ?? initValue,
      _previousValue = initValue;