changes method
Implementation
@override
bool changes(Map x) {
// si el arreglo tiene clave se devuelven solo
// los elementos con cambios
if (hasKey) {
for (var i in this) {
var n = {};
if (i.changes(n)) {
x[name] ??= [];
(x[name] as List).add(n);
}
}
return x.containsKey(name);
}
// si no hay key se devuelve todo el contenido si hay algun cambio
else {
for (var i in this) {
if (i.changed) {
x[name] = map((e) => e.get()).toList();
return true;
}
}
}
return false;
}