save method
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;
}
}