asMap static method

Map<String, Color> asMap()

Return all colors in KolorOranges as a Map<String, Color>.

Can be useful when working with UIs where the user can see all colors and select from a list.

Implementation

static Map<String, Color> asMap() => {
      'lightSalmon': lightSalmon,
      'coral': coral,
      'tomato': tomato,
      'orangeRed': orangeRed,
      'darkOrange': darkOrange,
      'orange': orange,
    };