saveAs static method

Future<String?> saveAs(
  1. Uint8List bytes,
  2. String name, {
  3. String? album,
  4. int quality = 100,
  5. Size? size,
  6. int? dpi,
  7. int rotate = 0,
  8. ImageFormat format = ImageFormat.jpeg,
})

Web: Downloads the file via Browser.

Android: Saves in album. If the album is NULL its name will be the image name.

Returns the String-path of the created File.

Default: JPG.

Implementation

static Future<String?> saveAs(
  Uint8List bytes,
  String name, {
  String? album,
  int quality = 100,
  Size? size,
  int? dpi,
  int rotate = 0,
  ImageFormat format = ImageFormat.jpeg,
}) async {
  return ImageSave.saveAs(format, bytes, name,
      album: album, quality: quality, size: size, dpi: dpi, rotate: rotate);
}