foreground method
Implementation
Color foreground(AFThemeID? id, Brightness brightness) {
final val = value(id);
var color;
if(val is Color) {
color = val;
} else if(val is TextStyle) {
color = val.color;
} else if(val is AFColorPairing) {
color = val.forgroundColor(brightness);
} else {
_throwUnsupportedType(id, val);
}
return color;
}