show method

void show (double x, double y)

Displays the crosshair at the specified x and y-positions.

Implementation

void show(double x, double y) {
  if (_crosshairPainter != null &&
      activationMode != ActivationMode.none &&
      x != null &&
      y != null) {
    _crosshairPainter.generateAllPoints(Offset(x, y));
    _crosshairPainter.canResetPath = false;
    _crosshairPainter.chart._chartState.crosshairRepaintNotifier.value++;
  }
}