ArcaneToc.custom constructor

const ArcaneToc.custom({
  1. required Widget content,
  2. String title = 'On this page',
  3. bool showTreeLines = true,
  4. String classPrefix = 'toc',
  5. Key? key,
})

Create a TOC that wraps custom content (e.g., from jaspr_content).

Implementation

const ArcaneToc.custom({
  required Widget content,
  this.title = 'On this page',
  this.showTreeLines = true,
  this.classPrefix = 'toc',
  super.key,
}) : entries = const [],
     customContent = content;