ImageSave class

This is a plugin that can save image to album. Support Android and iOS. For Android: The path is /{album name}/{image name}. For iOS: The path can't obtain, the image saved to a new album with name you given.

Constructors

ImageSave.new()

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 Methods

getImagesFromSandbox() Future<List<Uint8List>?>
Get images from sandbox.
saveImage(Uint8List? imageData, String imageName, {String? albumName, dynamic overwriteSameNameFile = true}) Future<bool?>
Save Image to album. imageData Image data. imageName Only works on Android. Image name, such as a.jpg, b.gif and so on. albumName Album name, optional. For Android, default application name. For iOS, default system album. overwriteSameNameFile Only works on Android. If true, overwrite the original file that has same name, default true.
saveImageToSandbox(Uint8List? imageData, String imageName) Future<bool?>
Save Image to Sandbox. Notice: Image saved in this way will be deleted when the application is uninstalled. For Android, the full path is /storage/emulated/0/Android/data/${application_package_name}/files/Pictures/imageName. For iOS, the full path is ${NSDocumentDirectory}/Pictures/imageName, not support dynamic images. imageData Image data. imageName Image name,contains extension, such as "demo.png".