asImageFile property

Future<ImageFile> asImageFile

Implementation

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