WatcherRef class abstract

A reference object that enables support for watching Listenables within a Widget.

A WatcherRef is always associated with a particular WatcherWidget (or WatcherMixin / StatefulWatcherMixin), and is only valid within the build method of that Widget.

See also:

Implementers

Constructors

WatcherRef()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
watch(Listenable listenable) → void
Watches the given listenable (i.e. Listenable.addListener) and rebuilds the widget whenever it notifies its listeners.

Operators

operator ==(Object other) bool
The equality operator.
inherited