fileDataRepresentation property Null safety
Generates and returns a flat data representation of the photo and its attachments.
Data appropriate for writing to a file of the type specified when requesting photo capture, or null if the photo and attachment data cannot be flattened.
When you request a photo capture with the CapturePhotoOutput.capturePhotoWithSettings method, the CapturePhotoSettings object you provide specifies image data formats (such as JPEG and HEVC) and container file formats (such as JFIF and HEIF) for the resulting image file. Calling this method formats and packages the image pixel buffer, along with metadata and other attachments created during capture (such as preview photos and depth maps), into data appropriate for writing to a file of that type.
final Uint8List? fileDataRepresentation;