RevealedOffset class

Return value for RenderAbstractViewport.getOffsetToReveal.

It indicates the offset required to reveal an element in a viewport and the rect position said element would have in the viewport at that offset.

Constructors

RevealedOffset({required double offset, required Rect rect})
Instantiates a return value for RenderAbstractViewport.getOffsetToReveal.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
offset double
Offset for the viewport to reveal a specific element in the viewport.
final
rect Rect
The Rect in the outer coordinate system of the viewport at which the to-be-revealed element would be located if the viewport's offset is set to offset.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Static Methods

clampOffset({required RevealedOffset leadingEdgeOffset, required RevealedOffset trailingEdgeOffset, required double currentOffset}) RevealedOffset?
Determines which provided leading or trailing edge of the viewport, as RevealedOffsets, will be used for RenderViewportBase.showInViewport accounting for the size and already visible portion of the RenderObject that is being revealed.