IsDirty property

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

Implementation

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

  return changes > 0 || this._isDirty;
}