Dart Documentationdartkart.corePropertyChangeEvent

PropertyChangeEvent class

An event emitted by a PropertyObservable if the value of a property changes.

class PropertyChangeEvent {
 /// the source object where the property was changed
 final Object source;
 /// the property name
 final String name;
 /// the old value
 final oldValue;
 ///  the new value
 final newValue;
 PropertyChangeEvent(this.source, this.name, this.oldValue, this.newValue);

 String toString() =>
     "{PropertyChangeEvent: source=$source name=$name, oldValue=$oldValue,"
     " newValue=$newValue";
}

Constructors

new PropertyChangeEvent(Object source, String name, oldValue, newValue) #

PropertyChangeEvent(this.source, this.name, this.oldValue, this.newValue);

Properties

final String name #

the property name

final String name

final newValue #

the new value

final newValue

final oldValue #

the old value

final oldValue

final Object source #

the source object where the property was changed

final Object source

Methods

String toString() #

Returns a string representation of this object.

docs inherited from Object
String toString() =>
   "{PropertyChangeEvent: source=$source name=$name, oldValue=$oldValue,"
   " newValue=$newValue";