WcModal constructor
const
WcModal({
- Key? key,
- required WcBaseError error,
- Color backgroundColor = Colors.deepPurple,
- Color textColor = Colors.white,
- IconData icon = Icons.error_outline,
- Color iconColor = Colors.white,
- 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,
});