saveImage2Album static method

Future<SaveResult?> saveImage2Album(
  1. ByteData bytes, {
  2. ImageByteFormat format = ImageByteFormat.png,
  3. String? fileName,
  4. int quality = 80,
})

将图片保存到相册,返回路径

Implementation

static Future<SaveResult?> saveImage2Album(ByteData bytes, {ImageByteFormat format = ImageByteFormat.png,
  String? fileName, int quality = 80}) async {
  return await saveBytes2Album(bytes.buffer.asUint8List());
}