ReleaseBundleZip constructor

ReleaseBundleZip(
  1. Release release, {
  2. Uint8List? zipBytes,
  3. Iterable<ReleaseFile>? files,
  4. String? rootPath,
  5. List<String> executableExtensions = defaultExecutableExtensions,
})

Implementation

ReleaseBundleZip(super.release,
    {Uint8List? zipBytes,
    Iterable<ReleaseFile>? files,
    this.rootPath,
    this.executableExtensions = defaultExecutableExtensions})
    : _zipBytes = zipBytes,
      _files = files?.toSet() {
  if (_files == null && _zipBytes == null) {
    throw ArgumentError(
        "Can't define files! Null `zipBytes` and `files` parameters.");
  }
}