getThumbnail static method

Future<Uint8List> getThumbnail({
  1. required String imageUri,
  2. int? width,
  3. int? height,
  4. int? size,
  5. int quality = 100,
})

Implementation

static Future<Uint8List> getThumbnail({
  required String imageUri,
  int? width,
  int? height,
  int? size,
  int quality = 100,
}) async {
  final raw = await _channel.invokeMethod(
    'getThumbnail',
    {
      'uri': imageUri,
      'width': width,
      'height': height,
      'size': size,
      'quality': quality,
    },
  );

  return Uint8List.fromList(raw ?? <int>[]);
}