addRowMaxHeight method

void addRowMaxHeight(
  1. int linenumber,
  2. double? rowMaxHeight
)

Implementation

void addRowMaxHeight(int linenumber, double? rowMaxHeight) {
  rowMaxHeights.addAll({linenumber: rowMaxHeight});
  // 等等 body cell height 是否有新的改变,目前只能等待看看,无法主动判断是否已全部resize完
  waitBodyCellHeightChange?.cancel();
  waitBodyCellHeightChange = Timer(const Duration(milliseconds: 0), () {
    // print("${rowMaxHeights.length}  $rowCount");
    if (rowMaxHeights.length >= rowCount) {
      notifyListeners();
    }
  });
}