archive property

Future<ZipPackage?> archive

ZIP archive holder.

Implementation

Future<ZipPackage?> get archive async {
  if (_archive == null) {
    File file = File(path);
    if (!await file.exists()) {
      return null;
    }
    _archive = await ZipPackage.fromArchive(file);
  }
  return _archive;
}