setTocList method

bool setTocList(
  1. LinkedHashMap<int, Toc>? tocList
)

update current _tocList, it's not recommended to call this method

Implementation

bool setTocList(LinkedHashMap<int, Toc>? tocList) {
  if (this._tocList == tocList) return false;
  this._tocList = tocList;
  scrollController = ItemScrollController();
  return true;
}