FlutterImageEnumList class

A class for generating enum-like classes from image assets.

The FlutterImageEnumList class provides methods for organizing image files into Dart enum-like classes based on the specified configuration.

Constructors

FlutterImageEnumList()
Constructs a FlutterImageEnumList instance with default configuration.
FlutterImageEnumList.withConfig({String assetFolderPath = DefaultConfig.assetFolderPath, String classFolderPath = DefaultConfig.classFolderPath, String customClassName = DefaultConfig.customClassName, List<String> fileExtensions = DefaultConfig.fileExtensions, bool recursive = DefaultConfig.recursive})
Constructs a FlutterImageEnumList instance with the specified configuration.
FlutterImageEnumList.withConfigFile(String configPath)
Constructs a FlutterImageEnumList instance with configuration loaded from a file.

Properties

config ↔ Config
getter/setter pair
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
run() Future<int>
For CLI Organizes image files according to the settings in the configuration.
toCamelCase(String input) String
Converts a string to camel case.
toString() String
A string representation of this object.
inherited
watch() Future<int>
For CLI Watches and organizes image files based on the settings in the configuration.
writeListToFile(List<FileSystemEntity> entities) Future<void>
Writes the enum-like class to a file.

Operators

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