assetServerPort function
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());
}