Open arthasyou opened 1 month ago
Sound like good additions!
List<String> get keys => _assets.keys;
You didn't check the box for working on a PR for this, so I guess we'll wait for someone else to pick this up (if you don't change your mind).
ill do it ty
I just had a look at images, and it already provides a setter for for the prefix
, so it is only the getter for the keys that is needed.
Problem to solve
The current implementation of the
Images
class lacks flexibility in two areas:Proposal
I propose the addition of two features to the
Images
class:Change Prefix Value:
setPrefix(String newPrefix)
that updates the_prefix
variable and ensures all cached paths are updated accordingly.View Cache Keys:
List<String> getCacheKeys()
that returns a list of all keys currently stored in the_assets
map.These enhancements would greatly improve the flexibility and usability of the
Images
class.More information
These features would align with the asset management practices seen in other frameworks and libraries, making it easier for developers to manage assets dynamically and ensure better cache management.
Other