cleanAppCacheDirs method

  1. @override
Future<String> cleanAppCacheDirs({
  1. bool cleanDefault = false,
  2. bool cleanAccessedDirs = false,
  3. bool cleanCache = true,
})
override

Future method cleanAppCacheDirs take bool _ cleanDefault take bool _ cleanAccessedDirs take bool _ cleanCache has String return Value

Implementation

@override
Future<String> cleanAppCacheDirs(
    {bool cleanDefault = false,
    bool cleanAccessedDirs = false,
    bool cleanCache = true}) async {
  final vPath = await methodChannel.invokeMethod<String>(_CLEAN_CASH_PATH, {
    "accessed": cleanAccessedDirs,
    "default": cleanDefault,
    "cache": cleanCache
  });
  if (vPath != null) {
    return vPath;
  } else {
    return "Check Permissions";
  }
}