listen library

Notify state changes to interested listeners.

Classes

ChangeNotifier
A class that can be extended or mixed in that provides a change notification API using VoidCallback for notifications.
Listenable
An object that maintains a list of listeners.
ValueListenable<T>
An interface for subclasses of Listenable that expose a value.
ValueNotifier<T>
A ChangeNotifier that holds a single value.

Enums

ErrorContext
Identifies the context in which an error was reported to Listenable.onError.

Typedefs

ErrorCallback = void Function(Object error, StackTrace? stackTrace, ErrorContext context)
Signature of callbacks that are called when an error is reported by a listener or assertion.
ObjectCreatedCallback = void Function(String className, Object object)
Signature of callbacks that are called when an object is created.
ObjectDisposedCallback = void Function(Object object)
Signature of callbacks that are called when an object is disposed.
VoidCallback = void Function()
Signature of callbacks that have no arguments and return no data.