ArchiveFile.noCompress constructor Null safety

ArchiveFile.noCompress(
  1. String name,
  2. int size,
  3. dynamic content
)

Implementation

ArchiveFile.noCompress(this.name, this.size, dynamic content) {
  name = name.replaceAll('\\', '/');
  compress = false;
  if (content is Uint8List) {
    _content = content;
    _rawContent = InputStream(_content);
  } else if (content is InputStream) {
    _rawContent = InputStream.from(content);
  }
}