DigitAcknowledgement.error constructor

DigitAcknowledgement.error({
  1. Key? key,
  2. required String label,
  3. String? subLabel,
  4. required String? description,
  5. required VoidCallback? action,
  6. required String? actionLabel,
  7. IconData? icon,
  8. Color? color,
  9. bool enableBackToSearch = true,
  10. bool enableViewHousehold = false,
  11. VoidCallback? secondaryAction,
  12. String? secondaryLabel,
  13. bool isActionLabel = true,
  14. 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;