show method

void show (double x, double y)

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

Implementation

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