VPlatformFile.fromPath constructor

VPlatformFile.fromPath({
  1. required String fileLocalPath,
})

Implementation

VPlatformFile.fromPath({
  required String this.fileLocalPath,
})  : fileSize = File(fileLocalPath).lengthSync(),
      name = basename(fileLocalPath),
      fileHash =
          sha256.convert(File(fileLocalPath).readAsBytesSync()).toString() {
  _initialize();
}