DesignOverlayInfo class

What DesignAnchoredOverlay.overlayBuilder paints the surface from.

Annotations

Constructors

DesignOverlayInfo({required DesignOverlaySide side, required Rect anchorRect, required Size maxSize, required Animation<double> animation, required VoidCallback close, Offset? position, ValueListenable<Rect?> surfaceRect = const _NoSurfaceRect()})
Info for a surface on side of anchorRect, opened at position when it opened at a point, whose place is told to surfaceRect (none, by default).
const

Properties

anchorRect → Rect
The anchor's rectangle in the overlay.
final
animation → Animation<double>
0 to 1 as it opens, 1 to 0 as it closes, on a spring (critically damped under Reduce Motion). An underdamped spring passes 1 before it rests: clamp it before an Opacity, which asserts outside 0 to 1, and let it overshoot only in a scale or a move.
final
close → VoidCallback
Closes it, focus going back to where it was: for an item's press.
final
hashCode → int
The hash code for this object.
no setterinherited
maxSize → Size
The most room it has on that side; a long surface scrolls within it.
final
position → Offset?
The point it opened at, in the anchor's coordinates, as given to MenuController.open(position:) (a context menu at the pointer); null when it opened from the anchor. A surface opened at a point draws no arrow: side is the side of the point it took.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
side → DesignOverlaySide
The side it sits on, after any flip: where an arrow points from, the edge a grow animation starts at.
final
surfaceRect → ValueListenable<Rect?>
The surface's rectangle in the overlay once it is laid out, after any flip and shift; null before its first layout.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited