CleverPushStoryView constructor

const CleverPushStoryView({
  1. Key? key,
  2. required String widgetId,
  3. String? backgroundColor,
  4. String? backgroundColorDarkMode,
  5. String? textColor,
  6. String? textColorDarkMode,
  7. Object? storyViewHeightAndroid,
  8. Object? storyViewWidthAndroid,
  9. int? storyViewHeightiOS,
  10. int? storyViewWidthiOS,
  11. String? fontFamily,
  12. CleverPushVisibility? titleVisibility,
  13. CleverPushStoryTitlePosition? titlePosition,
  14. int? titleTextSize,
  15. int? titleMinTextSize,
  16. int? titleMaxTextSize,
  17. int? storyIconHeight,
  18. int? storyIconHeightPercentage,
  19. int? storyIconWidth,
  20. double? storyIconCornerRadius,
  21. double? storyIconSpace,
  22. bool? storyIconShadow,
  23. CleverPushVisibility? borderVisibility,
  24. double? borderMargin,
  25. int? borderWidth,
  26. String? borderColor,
  27. String? borderColorDarkMode,
  28. String? borderColorLoading,
  29. String? borderColorLoadingDarkMode,
  30. CleverPushVisibility? subStoryUnreadCountVisibility,
  31. String? subStoryUnreadCountBackgroundColor,
  32. String? subStoryUnreadCountBackgroundColorDarkMode,
  33. String? subStoryUnreadCountTextColor,
  34. String? subStoryUnreadCountTextColorDarkMode,
  35. int? subStoryUnreadCountBadgeHeight,
  36. int? subStoryUnreadCountBadgeWidth,
  37. int? restrictToItems,
  38. CleverPushStoryCloseButtonPosition? closeButtonPosition,
  39. CleverPushStorySortToLastIndex? sortToLastIndex,
  40. bool? darkModeEnabled,
  41. void onOpened(
    1. String url
    )?,
  42. bool? storyWidgetShareButtonVisibility,
  43. bool? allowAutoRotation,
  44. bool? autoTrackShown,
})

Implementation

const CleverPushStoryView({
  Key? key,
  required this.widgetId,
  this.backgroundColor,
  this.backgroundColorDarkMode,
  this.textColor,
  this.textColorDarkMode,
  this.storyViewHeightAndroid,
  this.storyViewWidthAndroid,
  this.storyViewHeightiOS,
  this.storyViewWidthiOS,
  this.fontFamily,
  this.titleVisibility,
  this.titlePosition,
  this.titleTextSize,
  this.titleMinTextSize,
  this.titleMaxTextSize,
  this.storyIconHeight,
  this.storyIconHeightPercentage,
  this.storyIconWidth,
  this.storyIconCornerRadius,
  this.storyIconSpace,
  this.storyIconShadow,
  this.borderVisibility,
  this.borderMargin,
  this.borderWidth,
  this.borderColor,
  this.borderColorDarkMode,
  this.borderColorLoading,
  this.borderColorLoadingDarkMode,
  this.subStoryUnreadCountVisibility,
  this.subStoryUnreadCountBackgroundColor,
  this.subStoryUnreadCountBackgroundColorDarkMode,
  this.subStoryUnreadCountTextColor,
  this.subStoryUnreadCountTextColorDarkMode,
  this.subStoryUnreadCountBadgeHeight,
  this.subStoryUnreadCountBadgeWidth,
  this.restrictToItems,
  this.closeButtonPosition,
  this.sortToLastIndex,
  this.darkModeEnabled,
  this.onOpened,
  this.storyWidgetShareButtonVisibility,
  this.allowAutoRotation,
  this.autoTrackShown,
})  : assert(storyViewHeightAndroid == null ||
          storyViewHeightAndroid is int ||
          storyViewHeightAndroid is CleverPushStoryViewSize),
      assert(storyViewWidthAndroid == null ||
          storyViewWidthAndroid is int ||
          storyViewWidthAndroid is CleverPushStoryViewSize),
      super(key: key);