uri method

Uri uri({
  1. String path = '/',
  2. Map<String, String>? queryParameters,
})

Implementation

Uri uri({String path = '/', Map<String, String>? queryParameters}) {
  var scheme = config[defaultEndpointsProtocol] ?? 'https';
  var suffix = config[endpointSuffix] ?? 'core.windows.net';
  var name = config[accountName];

  var qp = <String, String>{if (queryParameters != null) ...queryParameters, if (config[sharedAccessSignature] != null) ...Uri(host: 'ignored', query: config[sharedAccessSignature]!).queryParameters};

  return Uri(
    scheme: scheme,
    host: '$name.blob.$suffix',
    path: path,
    queryParameters: qp,
  );
}