getThumbnail static method
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>[]);
}