FileService class

Constructors

FileService()

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

append(String filePath, String fileName, {String? base64Content, String? urlToFile, String? dataContent}) Future<String>
This method adds data to the content of your file from one of the key parameters. You need to specify only one of the key parameters: base64Content, urlToFile, dataContent. If more than one of the key parameters is specified. Only one of the specifications will be executed. The priority looks like this:
copyFile(String sourcePath, String targetPath) Future<String?>
exists(String path) Future<bool?>
getFileCount(String path, {String pattern = '*', bool recursive = false, bool countDirectories = false}) Future<int?>
listing(String path, {String pattern = '*', bool recursive = false, int? pageSize, int? offset}) Future<FileInfo?>
moveFile(String sourcePath, String targetPath) Future<String?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(String path, {String pattern = '*', bool recursive = false}) Future<int?>
rename(String path, String newName) Future<String?>
saveFile(String fileContent, String path, String fileName, {bool overwrite = false}) Future<String?>
Save a file to the specified path. File content should be encoded in base64. Example:
toString() String
A string representation of this object.
inherited
upload(String urlToFile, String backendlessPath, {bool overwrite = false}) Future<String?>
Upload a file from the specified URL at the specified path.

Operators

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