temporaryDirectory property

Future<Directory> get temporaryDirectory

Returns a path to the temporary directory.

Implementation

Future<Directory> get temporaryDirectory async {
  if (_temporaryDirectory != null) {
    return _temporaryDirectory!;
  }

  _temporaryDirectory = Directory(
    '${(await getTemporaryDirectory()).path}${Config.downloads}',
  );
  return _temporaryDirectory!;
}