assetServerPort function

int assetServerPort(
  1. String workingDirectory
)

Returns the port of the daemon asset server.

Implementation

int assetServerPort(String workingDirectory) {
  var portFile = File(assetServerPortFilePath(workingDirectory));
  if (!portFile.existsSync()) {
    throw Exception('Unable to read daemon asset port file.');
  }
  return int.parse(portFile.readAsStringSync());
}