assert(TextStyle(Color.red, Color.same) == Color.red.foreground); assert(TextStyle().fg(Color.red) == foreground(Color.red));
See Implementation