initTempDir static method

Future<Directory?> initTempDir()

Implementation

static Future<Directory?> initTempDir() async {
  if (_tempDir == null) {
    _tempDir = await getTemporaryDirectory();
  }
  return _tempDir;
}