toFileData static method

UFileData toFileData(
  1. UCapturedPhoto photo
)

Wraps a captured photo as the UFileData the rest of the package passes around, so camera output flows through uploads and pickers unchanged.

Implementation

static UFileData toFileData(UCapturedPhoto photo) => UFileData(
  bytes: photo.bytes,
  path: photo.path,
  extension: photo.extension,
);