open method

  1. @override
Future<Archive?> open(
  1. FileSystemEntity file,
  2. String? password
)
override

Opens an archive from a local file.

Implementation

@override
Future<Archive?> open(FileSystemEntity file, String? password) async =>
    ZipContainer(file.path)
        .archive
        .then((zipPackage) =>
            (zipPackage != null) ? ZipArchive(zipPackage) : null)
        .catchError((error, stackTrace) {});