ApiBody.binaryFile constructor
Binary file upload from a file-system path (mobile/desktop only).
On Flutter web there are no file paths — use ApiBody.binaryBytes there.
Implementation
const ApiBody.binaryFile(String path, {String? mimeType})
: this(
type: ApiBodyType.binary,
binaryFilePath: path,
binaryMimeType: mimeType ?? 'application/octet-stream',
);