Minio constructor
Minio({})
Initializes a new client object.
Implementation
Minio({
required this.endPoint,
required this.accessKey,
required this.secretKey,
int? port,
this.useSSL = true,
this.sessionToken,
this.region,
this.enableTrace = false,
}) : port = port ?? implyPort(useSSL) {
if (!isValidEndpoint(endPoint)) {
throw MinioInvalidEndpointError(
'End point $endPoint is not a valid domain or ip address',
);
}
if (!isValidPort(this.port)) {
throw MinioInvalidPortError(
'Invalid port number ${this.port}',
);
}
_client = MinioClient(this);
}