levelToIcon static method

IconData levelToIcon(
  1. DiagnosticLevel level
)

Implementation

static IconData levelToIcon(DiagnosticLevel level) {
  return switch (level) {
    DiagnosticLevel.hidden => Icons.all_inclusive_outlined,
    DiagnosticLevel.fine => Icons.bubble_chart_outlined,
    DiagnosticLevel.debug => Icons.bug_report_outlined,
    DiagnosticLevel.info => Icons.info_outline,
    DiagnosticLevel.warning => Icons.warning_outlined,
    DiagnosticLevel.hint => Icons.privacy_tip_outlined,
    DiagnosticLevel.summary => Icons.subject,
    DiagnosticLevel.error => Icons.error_outlined,
    DiagnosticLevel.off => Icons.not_interested_outlined,
  };
}