toIcon method
Gets the icon associated with this severity level.
Implementation
IconData toIcon() {
switch (this) {
case ValidationSeverity.error:
return Icons.error_outline;
case ValidationSeverity.warning:
return Icons.warning_amber_outlined;
case ValidationSeverity.info:
return Icons.info_outline;
}
}