putImage static method

Future<void> putImage(
  1. String path, {
  2. String? album,
})

Save a image to the gallery from file path.

Specify the album with album. If it does not exist, it will be created. path must include the file extension.

await Gal.putImage('${Directory.systemTemp.path}/image.jpg');

Throws an GalException If you do not have access premission or if an error occurs during saving. See: Formats

Implementation

static Future<void> putImage(String path, {String? album}) async =>
    GalPlatform.instance.putImage(path, album: album);