Dart DocumentationobservePropertyChangeRecord

PropertyChangeRecord class

A change record to a field of an observable object.

class PropertyChangeRecord extends ChangeRecord {
 /** The field that was changed. */
 final Symbol field;

 PropertyChangeRecord(this.field);

 bool changes(key) => key is Symbol && field == key;

 String toString() => '#<PropertyChangeRecord $field>';
}

Extends

ChangeRecord > PropertyChangeRecord

Constructors

new PropertyChangeRecord(Symbol field) #

PropertyChangeRecord(this.field);

Properties

final Symbol field #

The field that was changed.

final Symbol field

Methods

abstract bool change(key) #

inherited from ChangeRecord

True if the change affected the given item, otherwise false.

bool changes(key) #

bool changes(key) => key is Symbol && field == key;

String toString() #

Returns a string representation of this object.

docs inherited from Object
String toString() => '#<PropertyChangeRecord $field>';