reset method Null safety

void reset()

Resets the state to the initial value;

Implementation

void reset() {
  prevScaleState = scaleState;
  scaleState = PhotoViewScaleState.initial;
}