FileUtils class

Constructors

FileUtils()
factory

Properties

config ↔ YamlMap?
getter/setter pair
getCurrentPath String
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearFileNameFromPath(String path) String
Takes a file path as input and returns the path without the
deleteFile(String path) → void
Delete file from path
getConfig() → void
The getConfig function reads a YAML file and assigns the value of the 'config' key to the config variable.
getExcludeExtension() List<String>
Get list of excluded extensions from config
getExcludeFile() List<String>
Get list of excluded file from config
getPubspecAsset() Future<List<String>>
Reads the pubspec.yaml file and returns a list of assets.
loadAssets(String assetsPath) Future<List<FileSystemEntity>>
Load all assets files
moveToTrash(String path) Future<void>
Move file to trash folder
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 Properties

instance FileUtils
final