PaywallOverlay constructor
const
PaywallOverlay({
- Key? key,
- required Widget child,
- required DateTime dueDate,
- int daysDeadline = 60,
- PaywallEffect effect = PaywallEffect.gradient,
- Color color = const Color(0xFFFF0000),
- Color gradientFrom = const Color(0xFFFF0000),
- Color gradientTo = const Color(0xFF000000),
- bool enabled = true,
- bool blockInteractions = false,
- bool showMessage = true,
- String message = 'Pago pendiente',
- PaywallController? controller,
- 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,
});