icon property
Gets an icon for the given BurtLogLevel.
Implementation
Widget get icon => switch(log.level) {
BurtLogLevel.critical => criticalWidget,
BurtLogLevel.error => errorWidget,
BurtLogLevel.warning => warningWidget,
BurtLogLevel.info => infoWidget,
BurtLogLevel.debug => debugWidget,
BurtLogLevel.trace => traceWidget,
_ => const Icon(Icons.question_mark),
};