getInstance static method

IPFSUtils getInstance(
  1. String secretKey, {
  2. String requestUrl = "http://hn.vonechain.com:88",
  3. String downloadUrl = "http://hn.vonechain.com:88",
  4. String previewUrl = "http://hn.vonechain.com:88/ipfsPreview/onlinePreview",
})

Implementation

static IPFSUtils getInstance(
  String secretKey, {
  String requestUrl = "http://hn.vonechain.com:88",
  String downloadUrl = "http://hn.vonechain.com:88",
  String previewUrl = "http://hn.vonechain.com:88/ipfsPreview/onlinePreview",
}) {
  instance ??= IPFSUtils(secretKey, requestUrl, downloadUrl, previewUrl);
  return instance!;
}