Notification class abstract
A notification that can bubble up the component 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
components with the appropriate type parameters that are ancestors of the given
BuildContext.
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.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
debugFillDescription(
List< String> description) → void - Add additional information to the given description for use by toString.
-
dispatch(
BuildContext? target) → void - Start bubbling this notification at the given build context.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited