DigitAcknowledgement.error constructor
DigitAcknowledgement.error({
- Key? key,
- required String label,
- String? subLabel,
- required String? description,
- required VoidCallback? action,
- required String? actionLabel,
- IconData? icon,
- Color? color,
- bool enableBackToSearch = true,
- bool enableViewHousehold = false,
- VoidCallback? secondaryAction,
- String? secondaryLabel,
- bool isActionLabel = true,
- Widget? descriptionWidget,
Implementation
DigitAcknowledgement.error({
super.key,
required this.label,
this.subLabel,
required this.description,
required this.action,
required this.actionLabel,
IconData? icon,
Color? color,
this.enableBackToSearch = true,
this.enableViewHousehold = false,
this.secondaryAction,
this.secondaryLabel,
this.isActionLabel = true,
this.descriptionWidget,
}) : color = color ?? DigitTheme.instance.colors.lavaRed,
icon = icon ?? Icons.error;