asMap static method

Map<String, Color> asMap()

Return all colors in KolorGrays 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() => {
      'gainsboro': gainsboro,
      'lightGray': lightGray,
      'silver': silver,
      'darkGray': darkGray,
      'gray': gray,
      'dimGray': dimGray,
      'lightSlateGray': lightSlateGray,
      'slateGray': slateGray,
      'darkSlateGray': darkSlateGray,
      'black': black,
    };