VPlatformFile.fromAssets constructor

VPlatformFile.fromAssets({
  1. int fileSize = 0,
  2. required String assetsPath,
})

Implementation

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