asMap static method

Map<String, Color> asMap()

Return all colors in KolorPurples 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() => {
      'lavender': lavender,
      'thistle': thistle,
      'plum': plum,
      'violet': violet,
      'orchid': orchid,
      'fuchsia': fuchsia,
      'magenta': magenta,
      'mediumOrchid': mediumOrchid,
      'mediumPurple': mediumPurple,
      'rebeccaPurple': rebeccaPurple,
      'blueViolet': blueViolet,
      'darkViolet': darkViolet,
      'darkOrchid': darkOrchid,
      'darkMagenta': darkMagenta,
      'purple': purple,
      'indigo': indigo,
      'slateBlue': slateBlue,
      'darkSlateBlue': darkSlateBlue,
      'mediumSlateBlue': mediumSlateBlue,
    };