runtimeFile method

File? runtimeFile(
  1. String name
)

A file of the runtime directory — logging.properties, say — or null when there is no runtime directory or no such file.

Implementation

File? runtimeFile(String name) {
  final dir = runtimeDir;
  if (dir == null) return null;
  final file = File(joinPath([dir.path, name]));
  return file.existsSync() ? file : null;
}