asMap static method

Map<String, Color> asMap()

Return all colors in KolorPinks 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() => {
      'pink': pink,
      'lightPink': lightPink,
      'hotPink': hotPink,
      'deepPink': deepPink,
      'mediumVioletRed': mediumVioletRed,
      'paleVioletRed': paleVioletRed,
    };