VPlatformFile.fromBytes constructor

VPlatformFile.fromBytes({
  1. required String name,
  2. required List<int> bytes,
})

Implementation

VPlatformFile.fromBytes({
  required this.name,
  required List<int> this.bytes,
})  : fileSize = bytes.length,
      fileHash = sha256.convert(bytes).toString() {
  _initialize();
}