getHomePath static method

String getHomePath({
  1. bool isCache = false,
})

Implementation

static String getHomePath({bool isCache = false}) {
  try {
    if (!isCache) {
      var directory = CommonUtils.appFileDir;
      return '${directory.path}/atomicx_core_data';
    } else {
      var directory = CommonUtils.appCacheDir;
      return directory.path;
    }
  } catch (e) {
    return '/tmp/atomicx_core_data';
  }
}