FileSaver class

Constructors

FileSaver()

Properties

directory String
getter/setter pair
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
saveAs({required String name, Uint8List? bytes, File? file, String? filePath, LinkDetails? link, required String ext, required MimeType mimeType, String? customMimeType, Dio? dioClient, Uint8List transformDioResponse(dynamic data)?}) Future<String?>
saveAs This method will open a Save As File dialog where user can select the location for saving file.
saveFile({required String name, Uint8List? bytes, File? file, String? filePath, LinkDetails? link, String ext = '', MimeType mimeType = MimeType.other, String? customMimeType, Dio? dioClient, Uint8List transformDioResponse(dynamic data)?}) Future<String>
saveFile main method which saves the file for all platforms.
saveFileOnly({required String name, required File file, String ext = '', MimeType mimeType = MimeType.other, String? customMimeType}) Future<String?>
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance FileSaver
instance of file saver
no setter