get_any_temp_file

Last updated:

0 purchases

get_any_temp_file Image
get_any_temp_file Images
Add to Cart

Description:

get any temp file

Dart package to generate temporary file with any extension or file type in local directory of the device. #
Features #
getanytempfile.dart is a Dart package that provides a simple and efficient way to create temporary
files of any extension in a temporary directory.
Installation #
Add the following dependency to your pubspec.yaml:
dependencies:getAnyTempFile: ^
1.0
.0
copied to clipboard
Then run:
$ dart pub get
Usage #
void main() {
var getAnyTempFile = GetAnyTempFile();

///Generate .png temp file
print('getAnyTempFile: ${getAnyTempFile.getAnyTempFile(
prefixName: 'mytemp', fileName: 'getMyTemp')}');

///Generate .jpeg temp file
print('getAnyTempFile: ${getAnyTempFile.getAnyTempFile(
prefixName: 'mytemp', fileName: 'getMyTemp', fileType: 'jpeg')}');

///Generate .mp4 temp file
print('getAnyTempFile: ${getAnyTempFile.getAnyTempFile(
prefixName: 'mytemp', fileName: 'getMyTemp', fileType: 'mp4')}');

///Generate .mp3 temp file
print('getAnyTempFile: ${getAnyTempFile.getAnyTempFile(
prefixName: 'mytemp', fileName: 'getMyTemp', fileType: 'mp3')}');
}
copied to clipboard
Additional information #
getAnyTempFile() method returns a File object that represents the created temporary file.
You can specify the extension of the file by providing the extension argument.
If not specified, the default extension is .png.
Contributors #
Mukund Jogi


Having Issues #
File the Issue here
Looking to contribute to this package: #
🤘🏻 Then it's Great!
Fork the Repo
Update Code, write a meaningful commit message. Send a PR. That's all you need to contribute.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.