isNeedDraw method

bool isNeedDraw(
  1. ChartsState state
)

是否需要绘制

Implementation

bool isNeedDraw(ChartsState state) {
  if (minZoomVisible != null && state.layout.zoom < minZoomVisible!) {
    return false;
  }
  if (maxZoomVisible != null && state.layout.zoom > maxZoomVisible!) {
    return false;
  }
  return true;
}