getDirty method
Get the attributes that have been changed since the last sync.
Implementation
Map<String, dynamic> getDirty() {
final dirty = <String, dynamic>{};
for (final key in _attributes.keys) {
if (!_original.containsKey(key) || _original[key] != _attributes[key]) {
dirty[key] = _attributes[key];
}
}
return dirty;
}