VPlatformFile.fromPath constructor
VPlatformFile.fromPath({
- 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();
}