PromoModalProps class

Props for the promo modal.

Full-screen modal popup for high-priority promotions. Use sparingly - best for first-time visitors or major sales events.

Constructors

PromoModalProps({required String title, required String subtitle, String? description, String? promoCode, String? discount, String? ctaText, String? ctaHref, void onCtaClick()?, void onDismiss()?, int delayMs = 1000, Duration? countdownDuration, Widget? heroImage, ArcaneStyleData? styles, ArcaneDecoration? decoration})
const

Properties

countdownDuration → Duration?
Countdown duration for urgency.
final
ctaHref → String?
CTA button URL.
final
ctaText → String?
CTA button text.
final
decoration → ArcaneDecoration?
Optional decoration for the component.
final
delayMs → int
Delay in milliseconds before showing.
final
description → String?
Optional description text.
final
discount → String?
Discount text (e.g., "15% OFF").
final
hashCode → int
The hash code for this object.
no setterinherited
heroImage → Widget?
Optional hero image component.
final
onCtaClick → void Function()?
Callback when CTA is clicked.
final
onDismiss → void Function()?
Callback when modal is dismissed.
final
promoCode → String?
Optional promo code.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
styles → ArcaneStyleData?
Optional custom styles for the component.
final
subtitle → String
Modal subtitle (shown above title).
final
title → String
Modal 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