SectionHeader constructor
SectionHeader({})
Implementation
SectionHeader({
Key? key,
this.text,
this.child,
EdgeInsets? padding,
this.color,
this.backgroundColor,
this.textStyle,
}) : assert(
text != null || child != null,
),
super(key: key) {
this.padding = padding ??
EdgeInsets.fromLTRB(
Section.DEFAULT_CONTENT_PADDING,
Section.DEFAULT_CONTENT_PADDING,
Section.DEFAULT_CONTENT_PADDING,
Section.DEFAULT_CONTENT_PADDING / 2,
);
}