Header constructor

Header({
  1. int level = 1,
  2. String? text,
  3. Widget? child,
  4. BoxDecoration? decoration,
  5. EdgeInsetsGeometry? margin,
  6. EdgeInsetsGeometry? padding,
  7. TextStyle? textStyle,
  8. String? title,
  9. PdfColor? outlineColor,
  10. PdfOutlineStyle outlineStyle = PdfOutlineStyle.normal,
})

Implementation

Header({
  this.level = 1,
  this.text,
  this.child,
  this.decoration,
  this.margin,
  this.padding,
  this.textStyle,
  String? title,
  this.outlineColor,
  this.outlineStyle = PdfOutlineStyle.normal,
})  : assert(level >= 0 && level <= 5),
      assert(child != null || text != null),
      title = title ?? text;