ProgressClaimBannerProps class

Props for the progress claim banner.

A banner showing how many people have claimed an offer. Creates urgency through social proof and scarcity.

Constructors

ProgressClaimBannerProps({required String title, required String message, required int claimedCount, required int totalCount, String? promoCode, String? ctaText, String? ctaHref, void onCtaClick()?, void onDismiss()?, int delayMs = 2000, bool simulateProgress = true})
const

Properties

claimedCount int
Number of offers already claimed.
final
ctaHref String?
CTA button URL.
final
ctaText String?
CTA button text.
final
delayMs int
Delay in milliseconds before showing.
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
promoCode String?
Optional promo code.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
simulateProgress bool
Whether to simulate progress increasing over time.
final
title String
Banner title.
final
totalCount int
Total number of offers available.
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