resourceLength method

  1. @override
Future<int> resourceLength(
  1. String path
)
override

Implementation

@override
Future<int> resourceLength(String path) async {
  ZipPackage? package = await archive;
  ZipLocalFile? entry = package?.entries[path];
  if (entry == null) {
    throw ContainerException.resourceNotFound(path);
  }
  return entry.uncompressedSize;
}