Notification class

A notification that can bubble up the widget tree.

You can determine the type of a notification using the is operator to check the runtimeType of the notification.

To listen for notifications in a subtree, use a NotificationListener.

To send a notification, call dispatch on the notification you wish to send. The notification will be delivered to any NotificationListener widgets with the appropriate type parameters that are ancestors of the given BuildContext.

Implemented by

Constructors

Notification()
Abstract const constructor. This constructor enables subclasses to provide const constructors so that they can be used in const expressions.
const

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

debugFillDescription(List<String> description) → void
Add additional information to the given description for use by toString. [...]
@mustCallSuper, @protected
dispatch(BuildContext target) → void
Start bubbling this notification at the given build context. [...]
toString() String
Returns a string representation of this object.
visitAncestor(Element element) bool
Applied to each ancestor of the dispatch target. [...]
@mustCallSuper, @protected
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited