writeInstallationFile static method

String writeInstallationFile(
  1. File file
)

Write to the 'install file.' Pass in a File object representing the install file.

Implementation

static String writeInstallationFile(File file) {
  const uuid = Uuid();
  // Generate a v4 (random) id
  final id = uuid.v4(); // -> '110ec58a-a0f2-4ac4-8393-c866d813b8d1'
  Files.writeFile(file, id);
  return id;
}