getIcon method
Implementation
IconData? getIcon(TypeAlert? type) {
switch (type) {
case TypeAlert.success:
return Icons.check;
case TypeAlert.warning:
return Icons.warning_amber_outlined;
case TypeAlert.error:
return Icons.error_outline;
default:
return null;
}
}