getImagePacksFlat method
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()))));