getThumbnail method
Future<Uint8List?>
getThumbnail({
- required String id,
- required ThumbnailOption option,
- PMProgressHandler? progressHandler,
Get thumbnail of asset id.
Implementation
Future<typed_data.Uint8List?> getThumbnail({
required String id,
required ThumbnailOption option,
PMProgressHandler? progressHandler,
}) {
final Map<String, dynamic> params = <String, dynamic>{
'id': id,
'option': option.toMap(),
};
_injectProgressHandlerParams(params, progressHandler);
return _channel.invokeMethod(PMConstants.mGetThumb, params);
}