getTemporaryPath method
Path to the temporary directory on the device that is not backed up and is suitable for storing caches of downloaded files.
Implementation
@override
Future<String?> getTemporaryPath() {
final String environmentTmpDir = _environment['TMPDIR'] ?? '';
return Future<String?>.value(
environmentTmpDir.isEmpty ? '/tmp' : environmentTmpDir,
);
}