getImagePacksFlat method

Map<String, Map<String, String>> getImagePacksFlat([
  1. ImagePackUsage? usage
])

Get a flat view of all the image packs of a specified usage, that is a map of all slugs to a map of the image code to their mxc url

Implementation

Map<String, Map<String, String>> getImagePacksFlat([ImagePackUsage? usage]) =>
    getImagePacks(usage).map((k, v) =>
        MapEntry(k, v.images.map((k, v) => MapEntry(k, v.url.toString()))));