FileSaverExtension extension
A group of extensions for FileSaver.
- on
Methods
-
getPath(
BuildContext context) → Future< String?> - Returning path from saved file.
-
pickFile(
BuildContext context) → Future< File?> -
Picking a
File
. -
pickFiles(
BuildContext context) → Future< List< File> ?> - Picking list of File.
-
writeAsBytes(
List< int> bytes, {required BuildContext context, dynamic mode = FileMode.write, bool flush = false}) → Future<File?> - Calling writeAsBytes method.
-
writeAsBytesSync(
List< int> bytes, {required BuildContext context, dynamic mode = FileMode.write, bool flush = false}) → void - Calling writeAsBytesSync method.
-
writeAsString(
String contents, {required BuildContext context, dynamic mode = FileMode.write, Encoding encoding = utf8, bool flush = false}) → Future< File?> - Calling writeAsString method.
-
writeAsStringSync(
String contents, {required BuildContext context, dynamic mode = FileMode.write, Encoding encoding = utf8, bool flush = false}) → void - Calling writeAsStringSync method.