zoomIn method

void zoomIn()

Zoom in horizontally by 25%.

Implementation

void zoomIn() {
  final newWidth = (_viewport.candleWidth * 1.25).clamp(1.5, 60.0);
  _viewport = _viewport.copyWith(candleWidth: newWidth);
  notifyListeners();
}