openFile static method

Future<RarFile> openFile({
  1. required File file,
})

Opens the RAR archive from the specified universal_io file.

This method implements the Factory Method design pattern.

Returns a RarFile instance that can be used to read and extract files. Throws a RarException if the file cannot be opened, has an invalid signature, or fails header parsing.

Implementation

static Future<RarFile> openFile({required File file}) {
  return RarFileImpl.openFile(file);
}