HeroSectionProps constructor

const HeroSectionProps({
  1. String? headline,
  2. Widget? headlineComponent,
  3. String? subheadline,
  4. Widget? primaryCta,
  5. Widget? secondaryCta,
  6. Widget? badge,
  7. Widget? promoBanner,
  8. Widget? media,
  9. bool centered = true,
  10. double verticalPadding = 80,
  11. double maxWidth = 800,
  12. List<HeroStatItem>? stats,
  13. bool showBackgroundGlow = false,
  14. String? glowColor,
})

Implementation

const HeroSectionProps({
  this.headline,
  this.headlineComponent,
  this.subheadline,
  this.primaryCta,
  this.secondaryCta,
  this.badge,
  this.promoBanner,
  this.media,
  this.centered = true,
  this.verticalPadding = 80,
  this.maxWidth = 800,
  this.stats,
  this.showBackgroundGlow = false,
  this.glowColor,
}) : assert(headline != null || headlineComponent != null,
          'Either headline or headlineComponent must be provided');