BankReferralInviteCard constructor

const BankReferralInviteCard({
  1. required String referralCode,
  2. Key? key,
  3. String? rewardDescription,
  4. int referralCount = 0,
  5. int? maxReferrals,
  6. BankReferralState state = BankReferralState.pending,
  7. VoidCallback? onShare,
  8. VoidCallback? onCopyCode,
  9. EdgeInsetsGeometry? padding,
  10. BorderRadius? radius,
  11. Color? backgroundColor,
  12. Color? accentColor,
  13. TextStyle? titleStyle,
  14. TextStyle? codeStyle,
  15. String title = 'Invite Friends',
  16. String shareLabel = 'Share Invite',
  17. String rewardedLabel = 'Rewarded',
  18. String expiredLabel = 'Offer Expired',
  19. String? countLabel,
  20. IconData? giftIcon,
  21. IconData? shareIcon,
  22. IconData? copyIcon,
  23. IconData? rewardedIcon,
  24. 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,
});