FileHelper class

Constructors

FileHelper.new()

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 Properties

cacheStoragePath String
getter/setter pair
iosTempStoragePath String
getter/setter pair
iosUFUFileStoragePath String
getter/setter pair
localStoragePath String
getter/setter pair

Static Methods

checkFileExist(String filePath) Future<bool>
checkIfImage(String path) bool
checkIfImagePhotosDocument(String path) bool
checkIfLargeFile(String path) bool
checkIsUnsupportedFile(String fileName, String action) bool
deleteFile(String path) Future<void>
filterFilePath(String path) String
filterFilePath() : removes unwanted characters from picked file
getClassType(String mimeType) String
getFileExtension(String filePath) String?
getFileName(String filePath) String
getFileSizeWithUnit(int size) String
getTempDirPath() Future<String>
getUniqueFileName(String fileName) String
isUnsupportedPrintFile(String fileName) bool
isUnsupportedViewFile(String fileName) bool
openLocalFile(String path, {String? type}) → dynamic
readFileAsByte(String filePath) Future<Uint8List>
readFileAsString(String filePath) Future<String>
saveBase64File(Uint8List base64, String fileName) Future<File>
saveFile(String filePath, List<int> buffer) Future<File>
saveToTempDirectory(List<String?> filePaths, {bool doShowLoader = true}) Future<List<String>>
saveToTempDirectory() : can be used to save files to temp directory (with in app) so can accessed later and go through in no-affect with changes to original file
setLocalStoragePath() Future<void>