getDownloadCacheDirectory function

  1. @Deprecated('Android specific APIs will be removed soon in order to be replaced with a new set of original cross-platform APIs.')
Future<Directory?> getDownloadCacheDirectory()

Equivalent to Environment.getDataDirectory

Refer to details

Implementation

@Deprecated(
  'Android specific APIs will be removed soon in order to be replaced with a new set of original cross-platform APIs.',
)
Future<Directory?> getDownloadCacheDirectory() async {
  const kGetDownloadCacheDirectory = 'getDownloadCacheDirectory';

  return invokeVoidEnvironmentMethod(kGetDownloadCacheDirectory);
}