propertyIsDirty method

bool propertyIsDirty(
  1. dynamic object,
  2. String property
)

Implementation

bool propertyIsDirty(dynamic object, String property) {
  // local function

  bool applies(Command command) {
    if ( command is PropertyChangeCommand) {
      if (identical(command.target, object) && command.property == property)
        return true;
    }

    return false;
  }

  for (var command in _stack)
    if ( applies(command))
      return true;

  return false;
}