FileUtils mixin

Mixin applications

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

downloadCustomLocation({required String? url, dynamic progress(String)?, required String filename, required String extension, required dynamic path}) Future<File?>
this is used to download any location in as per user wants in case directory not exist it will create automatically
downloadFile({String? url, dynamic progress(String)?, StorageDirectory? storageDirectory}) Future<File?>
This function used for downlaod file from url and use locally for serveral purposes url is http location where file avaiblable for downlaod Progress is callback tell about download progress Storage directory tell where to download file currruntly avaiable for android devices only
downloadFileInDownloadFolderAndroid({required String? url, dynamic progress(String)?, required String filename, required String extension}) Future<File?>
use to download file download folder
downloadFileIos({String? url, dynamic progress(String)?, StorageDirectory? storageDirectory}) Future<File?>
https://retroportalstudio.medium.com/saving-files-to-application-folder-and-gallery-in-flutter-e9be2ebee92a
getBase64FromFile(File file) Future<String?>
this function is used to convert any file to base 64 string
getDownloadFolderPath() Future<String?>?
This tell user about where is download directory located in flutter
getFileExtension(File file) String?
This is used to get file extension
getFileFromBase64({required String base64string, required String name, required String extension}) Future<File?>
this function convert base64 to file with 3 inputs base64 string , name for comming file, and extension
getFileName(File file) String?
This function is used for get file name with extension
getFileNameFromText(String text) String?
This function is used for get file name with extension from text ***************
getFileNameWithoutExtension(File file) String?
this function is used to get file name without extension
getFileSize({required File file}) String?
this function return size of any file in flutter
getFileType(File? file) String
its help to get file category like image zip etc
getHttpMutipartFile({required String field, required File file}) Future<MultipartFile>?
This method user to get http multipart request file
getMultiPartFromFile(File file) Future<MultipartFile>?
its used to get multipart file from any extension.
getRootFolderPath() Future<String?>?
This tell user about where root directory located in flutter ****************
getUrlFileExtension(String url) String?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestPermission(Permission permission) Future<bool>
toString() String
A string representation of this object.
inherited
writeFiletoTemporaryDirectory({ByteData? data, String? extension = ""}) Future<File?>
This used to write Byte data to file like image is compress or download it will
writeUint8ListtoTemporaryDirectory({Uint8List? data, String? extension = ""}) Future<File?>
This used to write Byte data to file like image is compress or download it will

Operators

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