ArcaneHeading constructor

const ArcaneHeading({
  1. required HeadingLevel level,
  2. Component? child,
  3. String? text,
  4. ArcaneStyleData? styles,
  5. List<String>? classes,
  6. String? id,
  7. Key? key,
})

Implementation

const ArcaneHeading({
  required this.level,
  Component? child,
  this.text,
  this.styles,
  this.classes,
  this.id,
  super.key,
}) : _child = child,
     _children = null,
     assert(
       child != null || text != null,
       'Either child or text must be provided',
     );