utils/file_utils library
Functions
-
formatFileSize(
int bytes) → String -
Formats a file size
bytesinto a human-readable string. -
getImages(
Directory assetsDir, Directory projectRoot) → Future< List< String> > -
Scans
assetsDirfor image files and returns a list of image paths that are not referenced in any.dart,.yaml,.json, or.htmlfiles inside thelib/folder of theprojectRoot.