equalTo method

bool equalTo(
  1. Highlight? h
)

Returns true if this highlight object is equal to the other (compares xIndex and dataSetIndex)

@param h @return

Implementation

bool equalTo(Highlight? h) {
  if (h == null) {
    return false;
  } else {
    if (_dataSetIndex == h._dataSetIndex &&
        _x == h._x &&
        _stackIndex == h._stackIndex &&
        _dataIndex == h._dataIndex) {
      return true;
    } else {
      return false;
    }
  }
}