getIcon method

IconData getIcon(
  1. Severity? severity
)

Gets the appropriate icon for the given severity.

Implementation

IconData getIcon(Severity? severity) => switch (severity) {
  Severity.info => Icons.info,
  Severity.warning => Icons.warning,
  Severity.error => Icons.error,
  Severity.critical => Icons.dangerous,
  null => Icons.receipt_long,
};