writeInstallationFile static method

String writeInstallationFile(
  1. File file
)

Implementation

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