save method
Implementation
bool save({
required String destination,
required String label,
String title = '',
}) {
if (!active) return false;
if (resource != null &&
destination.trim() == this.destination &&
label == this.label &&
title == this.title) {
close();
return true;
}
if (destination.trim().isEmpty) return false;
final text = label == this.label && !(image && resource == null)
? null
: label;
final command = image
? SetImage(destination.trim(), alt: text, title: title)
: SetLink(destination.trim(), text: text, title: title);
return _submit(command);
}