needUpdatePrev method

  1. @override
bool needUpdatePrev(
  1. int curIndex
)
override

是否需要更新前面的列 Need to update previous columns

Implementation

@override
bool needUpdatePrev(int curIndex) {
  if (_needUpdatePrev) {
    if (value?.month == 2) {
      // Only February needs to be dealt with
      var _curType = getColumnType(curIndex);
      return _curType == 1 || _curType == 0;
    } else if (_apBeforeHourAp) {
      return getColumnType(curIndex) == 6;
    }
  }
  return false;
}