CleverPushStoryView constructor
const
CleverPushStoryView({
- Key? key,
- required String widgetId,
- String? backgroundColor,
- String? backgroundColorDarkMode,
- String? textColor,
- String? textColorDarkMode,
- Object? storyViewHeightAndroid,
- Object? storyViewWidthAndroid,
- int? storyViewHeightiOS,
- int? storyViewWidthiOS,
- String? fontFamily,
- CleverPushVisibility? titleVisibility,
- CleverPushStoryTitlePosition? titlePosition,
- int? titleTextSize,
- int? titleMinTextSize,
- int? titleMaxTextSize,
- int? storyIconHeight,
- int? storyIconHeightPercentage,
- int? storyIconWidth,
- double? storyIconCornerRadius,
- double? storyIconSpace,
- bool? storyIconShadow,
- CleverPushVisibility? borderVisibility,
- double? borderMargin,
- int? borderWidth,
- String? borderColor,
- String? borderColorDarkMode,
- String? borderColorLoading,
- String? borderColorLoadingDarkMode,
- CleverPushVisibility? subStoryUnreadCountVisibility,
- String? subStoryUnreadCountBackgroundColor,
- String? subStoryUnreadCountBackgroundColorDarkMode,
- String? subStoryUnreadCountTextColor,
- String? subStoryUnreadCountTextColorDarkMode,
- int? subStoryUnreadCountBadgeHeight,
- int? subStoryUnreadCountBadgeWidth,
- int? restrictToItems,
- CleverPushStoryCloseButtonPosition? closeButtonPosition,
- CleverPushStorySortToLastIndex? sortToLastIndex,
- bool? darkModeEnabled,
- void onOpened(
- String url
- bool? allowAutoRotation,
- 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);