A widget that listens for Notifications bubbling up the tree.
Notifications will trigger the onNotification callback only if their runtimeType is a subtype of T.
To dispatch notifications, use the Notification.dispatch method.
Constructors
Creates a widget that listens for notifications.Properties
child WidgetThe widget directly below this widget in the tree. [...]Called when a notification of the appropriate type arrives at this location in the tree. [...]hashCode intThe hash code for this object. [...]key KeyControls how one widget replaces another widget in the tree. [...]A representation of the runtime type of the object.Methods
build[BuildContext context] WidgetDescribes the part of the user interface represented by this widget. [...]createElement[] StatelessElementCreates a StatelessElement to manage this widget's location in the tree. [...]debugDescribeChildren[] ListReturns a list of DiagnosticsNode objects describing this node's children. [...]debugFillProperties[DiagnosticPropertiesBuilder properties] voidAdd additional properties associated with the node. [...]Invoked when a non-existent method or property is accessed. [...]toDiagnosticsNode[{String name, DiagnosticsTreeStyle style }] DiagnosticsNodeReturns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep. [...]toString[{DiagnosticLevel minLevel: DiagnosticLevel.debug }] StringReturns a string representation of this object.toStringDeep[{String prefixLineOne: '', String prefixOtherLines, DiagnosticLevel minLevel: DiagnosticLevel.debug }] StringReturns a string representation of this node and its descendants. [...]toStringShallow[{String joiner: ', ', DiagnosticLevel minLevel: DiagnosticLevel.debug }] StringReturns a one-line detailed description of the object. [...]toStringShort[] StringA short, textual description of this widget.Operators
operator ==[dynamic other] boolThe equality operator. [...]
Video liên quan