FileSupport class

Mixed-in types

Constructors

FileSupport()

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

compressImage(File file, {int? quality = 50, int? rotate = 0}) Future<File?>
This function is used to get compress image
inherited
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
inherited
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
inherited
downloadFileInDownloadFolderAndroid({required String? url, dynamic progress(String)?, required String filename, required String extension}) Future<File?>
use to download file download folder
inherited
downloadFileIos({String? url, dynamic progress(String)?, StorageDirectory? storageDirectory}) Future<File?>
https://retroportalstudio.medium.com/saving-files-to-application-folder-and-gallery-in-flutter-e9be2ebee92a
inherited
generateImage() → void
todo pending this function is used to generate random image for testing ui without adding images in asset folder
inherited
getBase64FromFile(File file) Future<String?>
this function is used to convert any file to base 64 string
inherited
getDownloadFolderPath() Future<String?>?
This tell user about where is download directory located in flutter
inherited
getFileExtension(File file) String?
This is used to get file extension
inherited
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
inherited
getFileName(File file) String?
This function is used for get file name with extension
inherited
getFileNameFromText(String text) String?
This function is used for get file name with extension from text ***************
inherited
getFileNameWithoutExtension(File file) String?
this function is used to get file name without extension
inherited
getFileSize({required File file}) String?
this function return size of any file in flutter
inherited
getFileType(File? file) String
its help to get file category like image zip etc
inherited
getHttpMutipartFile({required String field, required File file}) Future<MultipartFile>?
This method user to get http multipart request file
inherited
getImageReslution(File file) Future<FileData>
This tell user about image resolution
inherited
getMultiPartFromFile(File file) Future<MultipartFile>?
its used to get multipart file from any extension.
inherited
getMultiPartImage(File file) Future<MultipartFile>?
This function is used for convert image file to Multipart to uplaod using Dio
inherited
getPlatformVersion() Future<String?>
getRootFolderPath() Future<String?>?
This tell user about where root directory located in flutter ****************
inherited
getUrlFileExtension(String url) String?
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestPermission(Permission permission) Future<bool>
inherited
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
inherited
writeUint8ListtoTemporaryDirectory({Uint8List? data, String? extension = ""}) Future<File?>
This used to write Byte data to file like image is compress or download it will
inherited

Operators

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