saveToStorage method

Future<String> saveToStorage({
  1. String? storageId,
})

存储到特定Storage库中去 >>>

Implementation

Future<String> saveToStorage({String? storageId}) async {
  await FilePath().setup();
  String uuid = storageId ?? Uuid().v4();
  String destFile = FilePath().imageFilename(uuid);
  await saveToFile(destFile);

  return uuid;
}