setTocList method

void setTocList(
  1. List<Toc> list
)

Implementation

void setTocList(List<Toc> list) {
  _index2toc.clear();
  for (final toc in list) {
    _index2toc[toc.widgetIndex] = toc;
  }
  _onListChanged?.call(list);
}