maybeMoveLegacyDevToolsStore static method

void maybeMoveLegacyDevToolsStore()

Moves the .devtools file to ~/.flutter-devtools/.devtools if the .devtools file exists in the user's home directory.

Implementation

static void maybeMoveLegacyDevToolsStore() {
  final file = File(path.join(_userHomeDir(), DevToolsUsage.storeName));
  if (file.existsSync()) {
    ensureDevToolsDirectory();
    file.copySync(devToolsStoreLocation());
    file.deleteSync();
  }
}