VPlatformFile.fromUrl constructor

VPlatformFile.fromUrl({
  1. int fileSize = 0,
  2. required String url,
  3. String? baseUrl,
})

Implementation

VPlatformFile.fromUrl({
  this.fileSize = 0,
  required String url,
  this.baseUrl,
})  : name = basename(url),
      fileHash = basenameWithoutExtension(url).replaceAll(" ", "-") {
  baseUrl = url;
  _initialize();
}