loadThumbnail method

Future<Uint8List?> loadThumbnail(
  1. String localIdentifier, {
  2. int maxWidth = 256,
  3. int maxHeight = 256,
})

Load a downscaled thumbnail (JPEG bytes) for the photo-library asset identified by localIdentifier. Returns null when the asset cannot be resolved or decoded. maxWidth/maxHeight are an upper bound in logical pixels; aspect ratio is preserved. Default throws.

Implementation

Future<Uint8List?> loadThumbnail(
  String localIdentifier, {
  int maxWidth = 256,
  int maxHeight = 256,
}) =>
    throw UnimplementedError(
        'loadThumbnail is not implemented by this platform');