Listenable class abstract interface

An object that can notify listeners when something about it changes.

Used by NotifierBuilder, context.listen, Scope, and any mutable model that wants to broadcast changes without imposing a Stream subscription model on consumers.

Implementers

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

addListener(VoidCallback listener) → void
Registers listener to be called when this object changes.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeListener(VoidCallback listener) → void
Removes a previously-registered listener.
toString() → String
A string representation of this object.
inherited

Operators

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