IsDirty property

bool get IsDirty
True if the bag has pending changes, false otherwise.

Implementation

bool get IsDirty {
  int changes =
      _modifiedProperties.length +
      _deletedProperties.length +
      _addedProperties.length;

  return changes > 0 || _isDirty;
}