NiceHeading constructor

const NiceHeading({
  1. Key? key,
  2. required String text,
  3. int level = 1,
  4. TextStyle? style,
  5. TextAlign? textAlign,
})

Implementation

const NiceHeading({
  super.key,
  required this.text,
  this.level = 1,
  this.style,
  this.textAlign,
})  : assert(level >= 1 && level <= 6, 'Heading level must be between 1 and 6');