fromPath static method

StorageImage? fromPath(
  1. String sourcePath
)

Implementation

static StorageImage? fromPath(String sourcePath) {
  String? sid = imageToStorage(sourcePath);
  if (sid == null) {
    return null;
  }
  return StorageImage(sid);
}