Indicates that the size of one of the descendants of the object receiving this notification has changed, and that therefore any assumptions about that layout are no longer valid.

For example, sent by the SizeChangedLayoutNotifier widget whenever that widget changes size.

This notification can be used for triggering repaints, but if you use this notification to trigger rebuilds or relayouts, you'll create a backwards dependency in the frame pipeline because SizeChangedLayoutNotifications are generated during layout, which is after the build phase and in the middle of the layout phase. This backwards dependency can lead to visual corruption or lags.

See LayoutChangedNotification for additional discussion of layout notifications such as this one.

See also:

Inheritance

Constructors

SizeChangedLayoutNotification()

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

Operators

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