putVideo static method

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

Save a video 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.putVideo('${Directory.systemTemp.path}/video.mp4');

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

Implementation

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