resetWindowing method

void resetWindowing()

Resets the contrast and brightness to the defaults found in the DICOM headers.

Implementation

void resetWindowing() {
  if (!hasData) return;
  _currentWindowCenter = _currentFrame?.metadata.windowCenter;
  _currentWindowWidth = _currentFrame?.metadata.windowWidth;
  notifyListeners();
}