Header constructor
Header({
- int level = 1,
- String? text,
- Widget? child,
- BoxDecoration? decoration,
- EdgeInsetsGeometry? margin,
- EdgeInsetsGeometry? padding,
- TextStyle? textStyle,
- String? title,
- PdfColor? outlineColor,
- 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;