WcModal constructor

const WcModal({
  1. Key? key,
  2. required WcBaseError error,
  3. Color backgroundColor = Colors.deepPurple,
  4. Color textColor = Colors.white,
  5. IconData icon = Icons.error_outline,
  6. Color iconColor = Colors.white,
  7. VoidCallback? onPressed,
})

Implementation

const WcModal({
  super.key,
  required this.error,
  this.backgroundColor = Colors.deepPurple,
  this.textColor = Colors.white,
  this.icon = Icons.error_outline,
  this.iconColor = Colors.white,
  this.onPressed,
});