GGPackDecoder.fromFile constructor

GGPackDecoder.fromFile(
  1. String path, {
  2. XorKey? xorKey,
})

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);
}