init static method
Implementation
static Minio init({
required String endPoint,
required String accessKey,
required String secretKey,
int? port,
bool useSSL = true,
String? sessionToken,
String? region,
bool enableTrace = false,
}) {
final portParam = port ?? implyPort(useSSL);
if (!isValidEndpoint(endPoint)) {
throw MinioInvalidEndpointError(
'End point $endPoint is not a valid domain or ip address',
);
}
if (!isValidPort(portParam)) {
throw MinioInvalidPortError(
'Invalid port number $portParam',
);
}
_instance = Minio._(
endPoint: endPoint,
accessKey: accessKey,
secretKey: secretKey,
port: portParam,
useSSL: useSSL,
sessionToken: sessionToken,
region: region,
enableTrace: enableTrace,
);
return _instance!;
}