systemTempDirectory property Null safety

Directory systemTempDirectory
override

Gets the system temp directory. This directory will be created on-demand in the local root of the file system. Once created, its location is fixed for the life of the process.

Implementation

@override
Directory get systemTempDirectory {
  _systemTemp ??= directory(_localRoot).createTempSync('.tmp_').path;
  return directory(_systemTemp)..createSync();
}