getImagePreview method

Future<Uint8List?> getImagePreview(
  1. String path
)

Generates a thumbnail/preview for an image file.

path - The absolute path to the image file Returns a Uint8List containing the thumbnail bytes or null if generation fails

Example:

final preview = await MediaManagerPlatform.instance.getImagePreview('/path/to/image.jpg');

Implementation

Future<Uint8List?> getImagePreview(String path) {
  throw UnimplementedError('getImagePreview() has not been implemented.');
}