write static method

Future<void> write(
  1. File file,
  2. DomeManifest manifest, {
  3. Iterable<DomeEntrySource> entries = const [],
  4. bool checksums = false,
  5. bool forceZip64 = false,
})

Writes a packed .dome to file (see DomeCodec.write).

Implementation

static Future<void> write(
  File file,
  DomeManifest manifest, {
  Iterable<DomeEntrySource> entries = const [],
  bool checksums = false,
  bool forceZip64 = false,
}) async {
  final sink = file.openWrite();
  try {
    await DomeCodec.write(
      manifest,
      sink,
      entries: entries,
      checksums: checksums,
      forceZip64: forceZip64,
    );
  } finally {
    await sink.close();
  }
}