FlutterImgResolutionOrganizer class Null safety
Constructors
- FlutterImgResolutionOrganizer()
- A main constructor with a default configuration
-
FlutterImgResolutionOrganizer.withConfig({String assetFolderPath = DefaultConfig.ASSET_FOLDER_PATH, List<
String> fileExtensions = DefaultConfig.FILE_EXTENSIONS, String resolutionIndicator = DefaultConfig.RESOLUTION_INDICATOR, bool allowOverwrite = DefaultConfig.ALLOW_OVERWRITE}) - A named constructor that creates an instance with a config
- FlutterImgResolutionOrganizer.withConfigFile(String configPath)
- A named constructor that creates an instance with a configPath provided
Properties
- config ↔ Config
-
A configulation instance
read / write
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
moveFileToItsResolutionFolder(
FileSystemEntity entity) → int - Move a file to the target folder according to its resolution indicator
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
run(
) → int -
For CLI
Organise image's file according to the setting in the config instance -
toString(
) → String -
A string representation of this object.
inherited
-
watch(
) → Future< int> -
For CLI
Watch and organise image's file according to the setting in the config instance
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited