getCreateChromeDataDir static method
Return the path to a per-user Chrome data dir.
This method will create the directory if it does not exist.
Implementation
static String getCreateChromeDataDir() {
final prefsDir = getDartPrefsDirectory();
final chromeDataDir = Directory(path.join(prefsDir.path, 'chrome'));
if (!chromeDataDir.existsSync()) {
chromeDataDir.createSync(recursive: true);
}
return chromeDataDir.path;
}