OfferCard constructor

OfferCard(
  1. Offer offer, {
  2. Key? key,
  3. dynamic textColor,
  4. dynamic backgroundColor,
  5. dynamic fontFamily,
  6. dynamic fontPackage,
})

Builds the OfferCard.

TikiSdk.theme is used for default styling.

Implementation

OfferCard(this.offer,
    {super.key, textColor, backgroundColor, fontFamily, fontPackage}) {
  this.textColor = textColor ?? TikiSdk.instance.activeTheme.primaryTextColor;
  this.backgroundColor =
      backgroundColor ?? TikiSdk.instance.activeTheme.primaryBackgroundColor;
  this.fontFamily = fontFamily ?? TikiSdk.instance.activeTheme.fontFamily;
  this.fontPackage = fontPackage ?? TikiSdk.instance.activeTheme.fontPackage;
}