SectionHeader constructor

SectionHeader({
  1. Key? key,
  2. String? text,
  3. Widget? child,
  4. EdgeInsets? padding,
  5. Color? color,
  6. Color? backgroundColor,
  7. TextStyle? textStyle,
})

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,
      );
}