setToc method

bool setToc(
  1. Toc toc
)

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

Implementation

bool setToc(Toc toc) {
  if (this._currentToc == toc) return false;
  this._currentToc = toc;
  return true;
}