getTextThemeForSection method
Implementation
AnsiTextTheme getTextThemeForSection(
final LoggerTheme theme, final LogLevel level, final LogSection section) {
final AnsiColor foregroundColor = theme.colorMap[level] ?? AnsiColor.none;
return theme.sectionThemeMap[section]?.textTheme.copyWith
.foregroundColor(foregroundColor) ??
AnsiTextTheme(foregroundColor: foregroundColor);
}