ArchiveFile constructor Null safety

ArchiveFile(
  1. String name,
  2. int size,
  3. dynamic content,
  4. [int _compressionType = STORE]
)

Implementation

ArchiveFile(this.name, this.size, dynamic content, [this._compressionType = STORE]) {
  if (content is List<int>) {
    _content = content;
    _rawContent = InputStream(_content);
  } else if (content is InputStream) {
    _rawContent = InputStream.from(content);
  }
}