init static method
dynamic
init({})
Implementation
static init({
/// replace with your own access key
/// eg: AKPAAH6EDUOYSGTSJVFB
required String accessKeyId,
/// replace with your own secret key
/// eg: imLP837nxYarh/DWP+sLskPZqTCFHRS5PVzMRVcP
required String secretKeyId,
/// replace with your account's region name
/// eg: ap-south-1
required String region,
/// replace with your S3's bucket name
/// eg: your_bucket_name
required String bucketname,
/// update the endpoint url for your bucket
/// eg: https://your_bucket_name.s3-ap-south-1.amazonaws.com
required String s3Endpoint,
}) {
_accessKeyId = accessKeyId;
_secretKeyId = secretKeyId;
_region = region;
_bucketname = bucketname;
_s3Endpoint = s3Endpoint;
}