PaywallOverlay constructor

const PaywallOverlay({
  1. Key? key,
  2. required Widget child,
  3. required DateTime dueDate,
  4. int daysDeadline = 60,
  5. PaywallEffect effect = PaywallEffect.gradient,
  6. Color color = const Color(0xFFFF0000),
  7. Color gradientFrom = const Color(0xFFFF0000),
  8. Color gradientTo = const Color(0xFF000000),
  9. bool enabled = true,
  10. bool blockInteractions = false,
  11. bool showMessage = true,
  12. String message = 'Pago pendiente',
  13. PaywallController? controller,
  14. bool recalculateOnMidnight = false,
})

Implementation

const PaywallOverlay({
  super.key,
  required this.child,
  required this.dueDate,
  this.daysDeadline = 60,
  this.effect = PaywallEffect.gradient,
  this.color = const Color(0xFFFF0000),
  this.gradientFrom = const Color(0xFFFF0000),
  this.gradientTo = const Color(0xFF000000),
  this.enabled = true,
  this.blockInteractions = false,
  this.showMessage = true,
  this.message = 'Pago pendiente',
  this.controller,
  this.recalculateOnMidnight = false,
});