Last updated:
0 purchases
save to cache
Save To Cache #
This package is used to cache files, can save files individually and in folders.
Getting started #
Depend on it #
dependencies:
save_to_cache: ^1.0.1
copied to clipboard
Usage #
import #
...
import 'package:save_to_cache/save_to_cache.dart';
...
copied to clipboard
Single file save #
...
File fileSelect = File('path/to/file/select.type');
String? name = 'newName';
File result = await SaveToCache.saveFile(file: fileSelect, name: name);
...
copied to clipboard
Save multiple files #
...
List<File> files = [File('path/to/file/select1.type')];
List<String>? names = ['newName1'];
var result = await SaveToCache.saveFiles(files: files, names: names);
...
copied to clipboard
Save file with folder #
...
File fileSelect = File('path/to/file/select.type');
String newFolder = 'newFolder';
var result = await SaveToCache.saveFileWithFolder(file: fileSelect, folderName: newFolder);
...
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.