class ObserveProperty


Use this type to observe a property and have the method be called when it changes. For example:

@ObserveProperty('foo.bar baz qux')
validate() {
  // use this.foo.bar, this.baz, and this.qux in validation
  ...
}

Note that you can observe a property path, and more than a single property can be specified in a space-delimited list or as a constant List.

Constructors

ObserveProperty(_names)

const

Properties

hashCode → int

Get a hash code for this object.

read-only, inherited
names → List<String>

read-only
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
toString() → String

Returns a string representation of this object.

inherited