saveFile method

  1. @override
Future<bool> saveFile(
  1. Uint8List bytes,
  2. int width,
  3. int height, {
  4. required int quality,
  5. String? mime,
  6. required String path,
})
override

Save image to file

bytes image data to save width width of save image height height of save image mime MIME type of the save image quality quality of the save image, maximum is 100, size of saved image will be directly proportional to the quality

return true if successful otherwise false

Implementation

@override
Future<bool> saveFile(
  Uint8List bytes,
  int width,
  int height, {
  required int quality,
  String? mime,
  required String path,
}) =>
    _invokeMethod<bool>(method: Functions.saveFile, arguments: {
      Arguments.data: bytes,
      Arguments.width: width,
      Arguments.height: height,
      Arguments.path: path,
      Arguments.mime: mime,
      Arguments.quality: quality,
    });