saveThumbnailToFile method

  1. @override
Future<bool> saveThumbnailToFile({
  1. required String uri,
  2. required int width,
  3. required int height,
  4. required String destPath,
  5. String? format,
  6. int? quality,
})
override

Implementation

@override
Future<bool> saveThumbnailToFile({
  required String uri,
  required int width,
  required int height,
  required String destPath,
  String? format,
  int? quality,
}) async {
  final res = await methodChannel.invokeMethod<bool>(
    'saveThumbnailToFile',
    {
      'uri': uri.toString(),
      'width': width,
      'height': height,
      'destPath': destPath,
      'format': format,
      'quality': quality,
    },
  );
  return res ?? false;
}