bucket method
Implementation
Bucket bucket(String? bucket) {
if (endpointUrl == "https://${region}.digitaloceanspaces.com") {
return new Bucket(
region: region,
accessKey: accessKey,
secretKey: secretKey,
endpointUrl: "https://${bucket}.${region}.digitaloceanspaces.com",
httpClient: httpClient);
} else {
throw Exception(
"Endpoint URL not supported. Create Bucket client manually.");
}
}