SaverGallery class

Constructors

SaverGallery()

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
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

uuid ↔ Uuid
getter/setter pair

Static Methods

saveFile({required String file, required String name, String androidRelativePath = "Download", required bool androidExistNotSave}) Future<SaveResult>
Save the PNG,JPG,JPEG image or video located at file to the local device media gallery.
saveImage(Uint8List imageBytes, {int quality = 100, String? fileExtension, required String name, String androidRelativePath = "Pictures", required bool androidExistNotSave}) Future<SaveResult>
save image to Gallery imageBytes can't null return Map type for example:{"isSuccess":true, "errorMessage":String?} androidExistNotSave On Android, if true, the save path already exists, it is not saved. Otherwise, it is saved 在安卓平台上,如果是true,则保存路径已存在就不在保存,否则保存 androidRelativePath So for example androidRelativePath is Pictures/abc, so the save path is sdcard/Pictures/abc/${name} 例如androidRelativePath是 Pictures/abc,那么保存路径就是 sdcard/Pictures/abc/${name}