createImageUrl method
Creates a URL for uploading an image.
This method generates a pre-signed URL for uploading an image to the specified storage location.
Parameters:
mimeType
: The MIME type of the image to be uploaded.
Returns:
- A Future that completes with an ObjectUrlResponse containing the generated URL and other metadata.
Implementation
Future<ObjectUrlResponse> createImageUrl(String mimeType) async =>
await _client.createImageUrl(
CreateImageUrlRequest(mimeType: mimeType),
options: await _fetchOptions(),
);