PdfSectionTitleConfig class

Complete configuration for a section title.

This class encapsulates all settings related to section titles including:

  • Title text styling (font size, color, weight)
  • Optional icon to the left of the title
  • Optional divider below the title

Example usage:

PdfSectionTitleConfig(
  text: 'Sales Report',
  fontSize: 14,
  color: PdfColors.blue800,
  icon: PdfSectionTitleIconConfig(
    iconData: Icons.bar_chart,
    color: Colors.blue,
    size: 16,
  ),
  divider: PdfSectionTitleDividerConfig(
    show: true,
    height: 1,
    color: PdfColors.blue400,
  ),
)

Constructors

PdfSectionTitleConfig({required String text, double fontSize = 12.0, PdfColor? color, FontWeight fontWeight = pw.FontWeight.bold, PdfSectionTitleIconConfig? icon, PdfSectionTitleDividerConfig? divider})
Creates a new section title configuration.

Properties

color → PdfColor?
Color for the title text.
final
divider PdfSectionTitleDividerConfig?
Optional divider configuration below the title.
final
fontSize double
Font size for the title text.
final
fontWeight → FontWeight
Font weight for the title text.
final
hasDivider bool
Returns true if the title has a divider configured to show.
no setter
hashCode int
The hash code for this object.
no setterinherited
hasIcon bool
Returns true if the title has an icon configured.
no setter
icon PdfSectionTitleIconConfig?
Optional icon configuration for the title.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
The title text to display.
final

Methods

build() → Widget
Builds the section title widget.
copyWith({String? text, double? fontSize, PdfColor? color, FontWeight? fontWeight, PdfSectionTitleIconConfig? icon, PdfSectionTitleDividerConfig? divider}) PdfSectionTitleConfig
Creates a copy with modified properties.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prepareIcon() Future<void>
Prepares the icon bytes for rendering.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited