getDirty method

Map<String, dynamic> getDirty()
inherited

Get the dirty attributes (those that have changed).

Implementation

Map<String, dynamic> getDirty() {
  final dirty = <String, dynamic>{};

  for (final key in _attributes.keys) {
    if (_attributes[key] != _original[key]) {
      dirty[key] = _attributes[key];
    }
  }

  return dirty;
}