GGPackDecoder.fromFile constructor
Creates a GGPackDecoder from a path
and an optional xorKey
.
Implementation
factory GGPackDecoder.fromFile(String path, {XorKey? xorKey}) {
final bytes = File(path).readAsBytesSync();
return GGPackDecoder(bytes, xorKey: xorKey);
}