calculateLocation method

void calculateLocation(
  1. Offset? position
)

To get the location of chart tooltip

Implementation

void calculateLocation(Offset? position) {
  _x = position?.dx;
  _y = position?.dy;
}