ArchiveFsOverrides.fromFile constructor
Implementation
factory ArchiveFsOverrides.fromFile(File archive, {String mountTo = ""}) {
if (archive.existsSync()) {
throw ArgumentError.value(
archive,
"archive",
"Must be a file which exists on the filesystem.",
);
}
return ArchiveFsOverrides._(
archive: archive_io.ZipDecoder().decodeBytes(archive.readAsBytesSync()),
mountTo: mountTo,
);
}