Paywall constructor

Paywall(
  1. String name,
  2. String image,
  3. String title,
  4. List<String> features,
  5. List<String> items, {
  6. Color btnColor = Colors.blue,
  7. Color selectedColor = const Color.fromARGB(255, 95, 171, 247),
  8. Color checkColor = Colors.green,
  9. Color closeColor = Colors.grey,
  10. Color restoreColor = Colors.grey,
  11. int selectedIndex = 0,
  12. bool showInfoLink = false,
  13. String infoText = "",
  14. bool darkMode = false,
})

Implementation

Paywall(
  this.name,
  this.image,
  this.title,
  this.features,
  this.items, {
  this.btnColor = Colors.blue,
  this.selectedColor = const Color.fromARGB(255, 95, 171, 247),
  this.checkColor = Colors.green,
  this.closeColor = Colors.grey,
  this.restoreColor = Colors.grey,
  this.selectedIndex = 0,
  this.showInfoLink = false,
  this.infoText = "",
  this.darkMode = false,
}) {
  bgColor = darkMode ? CupertinoColors.black : CupertinoColors.white;
  textColor = darkMode ? CupertinoColors.white : CupertinoColors.black;
}