getThumbnail method

Future<Uint8List?> getThumbnail({
  1. required String id,
  2. required ThumbnailOption option,
  3. 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(),
  };
  _injectParams(params, progressHandler);
  return _channel.invokeMethod(PMConstants.mGetThumb, params);
}