writeLevel method
Implementation
void writeLevel(LogLevel level, Object message, {required Styles fg}) {
// ignore: avoid_print
if (logLevelNum[level]! > logLevelNum[this.level]!) {
return;
}
if (fg == Styles.DEFAULT) {
write(message);
return;
}
write(colorize(message.toString(), fg: fg));
}