isLastAxis method

bool isLastAxis(
  1. BaseAxisImpl<BaseAxis, dynamic> node
)

Implementation

bool isLastAxis(BaseAxisImpl node) {
  bool hasCheck = false;
  for (int i = props.axisList.length - 1; i >= 0; i--) {
    var node2 = _axisMap[props.axisList[i]]!;
    if (node2.show) {
      hasCheck = true;
    }
    if (node == node2) {
      return !hasCheck;
    }
  }
  return false;
}