utils/file_utils library

Properties

assetsDir Directory
A reference to the default assets directory (assets/).
final

Functions

formatFileSize(int bytes) String
Formats a file size bytes into a human-readable string.
getImages(Directory assetsDir, Directory projectRoot) Future<List<String>>
Scans assetsDir for image files and returns a list of image paths that are not referenced in any .dart, .yaml, .json, or .html files inside the lib/ folder of the projectRoot.