HeaderList constructor

const HeaderList(
  1. List<ListItemModel> listItems, {
  2. Key? key,
  3. String? imageUrl,
  4. Color? imageBlendColor,
  5. BlendMode? imageBlendMode,
  6. BackgroundGradientType? headerGradientType,
  7. EdgeInsetsGeometry? headerPadding,
  8. EdgeInsetsGeometry? avatarPadding,
  9. SimpleClipPath? imageClipPath,
  10. int headerFlex = 1,
  11. AlignmentGeometry headerAlignment = AlignmentDirectional.bottomCenter,
  12. int itemsFlex = 2,
  13. EdgeInsetsGeometry? listPadding,
  14. ThemeGroupType cardType = ThemeGroupType.MOM,
  15. ElevationLevel cardElevationLevel = ElevationLevel.FLAT,
  16. ThemeGroupType leadingIconType = ThemeGroupType.MOM,
  17. Emphasis leadingEmphasis = Emphasis.NONE,
  18. ThemeGroupType titleType = ThemeGroupType.MOM,
  19. Emphasis titleEmphasis = Emphasis.NONE,
  20. ThemeGroupType subtitleType = ThemeGroupType.MOM,
  21. Emphasis subtitleEmphasis = Emphasis.NONE,
  22. ThemeGroupType trailingIconType = ThemeGroupType.MOM,
  23. Emphasis trailingEmphasis = Emphasis.NONE,
  24. bool isHeaderSticky = true,
  25. bool isAvatarEnabled = true,
  26. double? heightBetween = 20.0,
  27. String avatarTitle = "First Last Name",
  28. ThemeGroupType avatarTitleType = ThemeGroupType.POM,
  29. Emphasis avatarTitleEmphasis = Emphasis.HIGH,
  30. String avatarSubtitle = "Tag Line",
  31. ThemeGroupType avatarSubtitleType = ThemeGroupType.MOM,
  32. Emphasis avatarSubtitleEmphasis = Emphasis.NONE,
  33. String avatarImageUrl = "assets/female.png",
  34. double avatarImageBorderWidth = 4.0,
  35. double avatarImageRadius = 70.0,
  36. VoidCallback? avatarClickedCallback,
  37. bool usePolygonAvatar = false,
})

Implementation

const HeaderList(
    this.listItems,
    {
      super.key,
      this.imageUrl,
      this.imageBlendColor,
      this.imageBlendMode,
      this.headerGradientType,
      this.headerPadding,
      this.avatarPadding,
      this.imageClipPath,
      this.headerFlex = 1,
      this.headerAlignment = AlignmentDirectional.bottomCenter,
      this.itemsFlex = 2,
      this.listPadding,
      this.cardType = ThemeGroupType.MOM,
      this.cardElevationLevel = ElevationLevel.FLAT,
      this.leadingIconType = ThemeGroupType.MOM,
      this.leadingEmphasis = Emphasis.NONE,
      this.titleType = ThemeGroupType.MOM,
      this.titleEmphasis = Emphasis.NONE,
      this.subtitleType = ThemeGroupType.MOM,
      this.subtitleEmphasis = Emphasis.NONE,
      this.trailingIconType = ThemeGroupType.MOM,
      this.trailingEmphasis = Emphasis.NONE,
      this.isHeaderSticky = true,
      this.isAvatarEnabled = true,
      this.heightBetween = 20.0,
      this.avatarTitle = "First Last Name",
      this.avatarTitleType = ThemeGroupType.POM,
      this.avatarTitleEmphasis = Emphasis.HIGH,
      this.avatarSubtitle = "Tag Line",
      this.avatarSubtitleType = ThemeGroupType.MOM,
      this.avatarSubtitleEmphasis = Emphasis.NONE,
      this.avatarImageUrl = "assets/female.png",
      this.avatarImageBorderWidth = 4.0,
      this.avatarImageRadius = 70.0,
      this.avatarClickedCallback,
      this.usePolygonAvatar = false
    }
);