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;
}