restore method

Future<void> restore()

Implementation

Future<void> restore() async {
  // display help if passed
  if (_help(
      "Restores main.cpp, win32_window.h, and win32_window.cpp, C++ files to the values contained in this package. The values in this package should be the default flutter values")) {
    return;
  }

  // copy C++ code to project
  try {
    _copyAssetsToProject(restore: true);
  } catch (err) {
    stderr.writeln(err.toString());
  }
}