FlutterFileSaver class
Allows to write files to the device's file system.
Files are saved in the following locations:
- Android: Device's external downloads directory.
- iOS: Application's Documents directory.
- MacOS: Applications's Documents directory.
- Web: Browser's downloads directory.
Constructors
- FlutterFileSaver()
-
Constructs a singleton instance of FlutterFileSaver.
factory
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setFileSaverInstance(
FileManagerPlatform platform) → void - Allows you to mock the FileManagerPlatform instance for testing.
-
toString(
) → String -
A string representation of this object.
inherited
-
writeFileAsBytes(
{required String fileName, required Uint8List bytes}) → Future< String> -
Write
bytes
insidefileName
and return the path to the file. -
writeFileAsString(
{required String fileName, required String data}) → Future< String> -
Write
data
insidefileName
and return the path to the file.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited