resetView method

void resetView()

Resets both time and price scale to default view.

Implementation

void resetView() {
  _viewport = _viewport.copyWith(candleWidth: 8.0, scrollOffset: 0.0);
  _verticalScale = 1.0;
  _verticalPan = 0.0;
  _crosshairPosition = null;
  _hoveredCandle = null;
  notifyListeners();
}