cssColorNamesToArgb top-level constant
A map of CSS color names to their corresponding ARGB values.
Usage could be like with Color class: Color(cssColorNamesToArgb['red'])
Implementation
const cssColorNamesToArgb = <String, int>{
'black': 0xFF000000,
'white': 0xFFFFFFFF,
'red': 0xFFFF0000,
'lime': 0xFF00FF00,
'green': 0xFF008000,
'blue': 0xFF0000FF,
'yellow': 0xFFFFFF00,
'cyan': 0xFF00FFFF,
'magenta': 0xFFFF00FF,
'silver': 0xFFC0C0C0,
'gray': 0xFF808080,
'maroon': 0xFF800000,
'olive': 0xFF808000,
'purple': 0xFF800080,
'teal': 0xFF008080,
'navy': 0xFF000080,
'orange': 0xFFFFA500,
'pink': 0xFFFFC0CB,
'brown': 0xFFA52A2A,
'violet': 0xFFEE82EE,
'gold': 0xFFFFD700,
'indigo': 0xFF4B0082,
'khaki': 0xFFF0E68C,
'coral': 0xFFFF7F50,
'aquamarine': 0xFF7FFFD4,
'turquoise': 0xFF40E0D0,
'lavender': 0xFFE6E6FA,
'tan': 0xFFD2B48C,
'salmon': 0xFFFA8072,
'plum': 0xFFDDA0DD,
'orchid': 0xFFDA70D6,
'chocolate': 0xFFD2691E,
'tomato': 0xFFFF6347,
'crimson': 0xFFDC143C,
'transparent': 0x00000000,
'aliceblue': 0xFFF0F8FF,
// (Additional named colors could be added here in the future.)
};