RawPFile.ofBytes constructor

RawPFile.ofBytes(
  1. String? name,
  2. Uint8List bytes
)

Implementation

RawPFile.ofBytes(String? name, Uint8List bytes)
    : _isRead = true,
      path = null,
      _bytes = bytes,
      name = name ?? puid(),
      _read = null,
      _readStreamFactory = rawPFileReadStreamFactory,
      _size = bytes.length;