asImageFile property

Future<ImageFile> get asImageFile

Implementation

Future<ImageFile> get asImageFile async {
  return ImageFile(
    filePath: path,
    rawBytes: await readAsBytes(),
    contentType: mimeType,
  );
}