AssetOrganizer class

Utility class for organizing and categorizing discovered assets.

Provides methods for grouping assets by type, directory, and other criteria to facilitate efficient code generation.

Constructors

AssetOrganizer()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

filterFonts(List<Asset> assets) List<Asset>
Filters assets to include only font files.
filterImages(List<Asset> assets) List<Asset>
Filters assets to include only image files.
getStatistics(List<Asset> assets) Map<String, dynamic>
Gets statistics about the provided assets.
groupByDirectory(List<Asset> assets) Map<String, List<Asset>>
Groups assets by their containing directory.
groupByExtension(List<Asset> assets) Map<String, List<Asset>>
Groups assets by their file extension.
sortByExtensionThenName(List<Asset> assets) List<Asset>
Sorts assets by extension, then by name.
sortByName(List<Asset> assets) List<Asset>
Sorts assets by name in alphabetical order.