SlidingSidebarBannerProps class
Props for the sliding sidebar banner.
A vertical sidebar banner that slides in from the edge of the screen. Great for detailed promotions with more content space.
Constructors
-
SlidingSidebarBannerProps({required String title, required String message, String? subtitle, String? promoCode, String? discount, String? ctaText, String? ctaHref, void onCtaClick()?, void onDismiss()?, PromoSidebarPosition position = PromoSidebarPosition.right, int delayMs = 3000, List<
String> ? features}) -
const
Properties
- ctaHref → String?
-
CTA button URL.
final
- ctaText → String?
-
CTA button text.
final
- delayMs → int
-
Delay in milliseconds before showing.
final
- discount → String?
-
Discount text (e.g., "15% OFF").
final
-
features
→ List<
String> ? -
Optional list of features to display.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
Banner message.
final
- onCtaClick → void Function()?
-
Callback when CTA is clicked.
final
- onDismiss → void Function()?
-
Callback when dismissed.
final
- position → PromoSidebarPosition
-
Which side to show the sidebar.
final
- promoCode → String?
-
Optional promo code.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subtitle → String?
-
Optional subtitle.
final
- title → String
-
Banner title.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited