saveImageWithPath method

Future<AssetEntity?> saveImageWithPath(
  1. String path, {
  2. String? title,
  3. String? desc,
  4. String? relativePath,
})

Save image to gallery.

in iOS is Recent. in Android is picture directory. On Android 28 or lower, if the file is located in the external storage, it's path will be used in the MediaStore. On Android 29 or above, you can use relativePath to specify a RELATIVE_PATH used in the MediaStore.

Implementation

Future<AssetEntity?> saveImageWithPath(
  String path, {
  String? title,
  String? desc,
  String? relativePath,
}) async {
  return _plugin.saveImageWithPath(
    path,
    title: title,
    desc: desc,
    relativePath: relativePath,
  );
}