save method

bool save(
  1. File file
)

Saves the current XML content to the specified file. Returns true if successful, false otherwise.

Implementation

bool save(File file) {
  try {
    file.writeAsStringSync(toString());
    return true;
  } catch (e) {
    return false;
  }
}