Callback type for TOC list change events
typedef TocListCallback = void Function(List<TocItem> list);