FlutterImageEnumList.withConfig constructor

FlutterImageEnumList.withConfig({
  1. String assetFolderPath = DefaultConfig.assetFolderPath,
  2. String classFolderPath = DefaultConfig.classFolderPath,
  3. String customClassName = DefaultConfig.customClassName,
  4. List<String> fileExtensions = DefaultConfig.fileExtensions,
  5. bool recursive = DefaultConfig.recursive,
})

Constructs a FlutterImageEnumList instance with the specified configuration.

assetFolderPath, classFolderPath, customClassName, fileExtensions, and recursive are optional parameters to customize the configuration.

Implementation

FlutterImageEnumList.withConfig({
  String assetFolderPath = DefaultConfig.assetFolderPath,
  String classFolderPath = DefaultConfig.classFolderPath,
  String customClassName = DefaultConfig.customClassName,
  List<String> fileExtensions = DefaultConfig.fileExtensions,
  bool recursive = DefaultConfig.recursive,
}) {
  config = Config(
    assetFolderPath: assetFolderPath,
    classFolderPath: classFolderPath,
    customClassName: customClassName,
    fileExtensions: fileExtensions,
    recursive: recursive,
  );
}