isDirty property

bool get isDirty

Whether any of the properties defined in currentProps have a value that is different from their original value.

This can be used to determine if any changes have been made to the view model since it was last reset or since the CurrentProperty.originalValue of the properties were last updated to their current values.

Implementation

bool get isDirty {
  for (final prop in currentProps) {
    if (prop.isDirty) return true;
  }
  return false;
}