asMap static method

Map<String, Color> asMap()

Return all colors in KolorReds 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() => {
      'indianRed': indianRed,
      'lightCoral': lightCoral,
      'salmon': salmon,
      'darkSalmon': darkSalmon,
      'lightSalmon': lightSalmon,
      'crimson': crimson,
      'red': red,
      'fireBrick': fireBrick,
      'darkRed': darkRed,
    };