DVDocumentBlock.heading constructor

const DVDocumentBlock.heading(
  1. String text, {
  2. int level = 2,
})

Implementation

const DVDocumentBlock.heading(this.text, {int level = 2})
    : kind = 'heading',
      level = level < 2 ? 2 : (level > 6 ? 6 : level),
      href = null;