BankReferralInviteCard constructor
const
BankReferralInviteCard({
- required String referralCode,
- Key? key,
- String? rewardDescription,
- int referralCount = 0,
- int? maxReferrals,
- BankReferralState state = BankReferralState.pending,
- VoidCallback? onCopyCode,
- EdgeInsetsGeometry? padding,
- BorderRadius? radius,
- Color? backgroundColor,
- Color? accentColor,
- TextStyle? titleStyle,
- TextStyle? codeStyle,
- String title = 'Invite Friends',
- String rewardedLabel = 'Rewarded',
- String expiredLabel = 'Offer Expired',
- String? countLabel,
- IconData? giftIcon,
- IconData? copyIcon,
- IconData? rewardedIcon,
- String? semanticLabel,
Implementation
const BankReferralInviteCard({
required this.referralCode,
super.key,
this.rewardDescription,
this.referralCount = 0,
this.maxReferrals,
this.state = BankReferralState.pending,
this.onShare,
this.onCopyCode,
this.padding,
this.radius,
this.backgroundColor,
this.accentColor,
this.titleStyle,
this.codeStyle,
this.title = 'Invite Friends',
this.shareLabel = 'Share Invite',
this.rewardedLabel = 'Rewarded',
this.expiredLabel = 'Offer Expired',
this.countLabel,
this.giftIcon,
this.shareIcon,
this.copyIcon,
this.rewardedIcon,
this.semanticLabel,
});