Skip to main content

LayoutChangedNotification

Trait LayoutChangedNotification 

Source
pub trait LayoutChangedNotification: Notification { }
Expand description

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

Useful if, for instance, you’re trying to align multiple descendants.

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

Dart’s class is concrete and also the base of other notifications, such as every ScrollNotification; here it is the family a notification declares itself part of through Notification::as_layout_changed_notification, and PlainLayoutChangedNotification is Dart’s const LayoutChangedNotification().

Trait Implementations§

Source§

impl NotificationTarget for dyn LayoutChangedNotification

Source§

fn cast( notification: &dyn Notification, ) -> Option<&dyn LayoutChangedNotification>

The notification as a T, when it is one.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§