RevealedOffset class Null safety

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.
read-onlyinherited
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.
read-onlyinherited

Methods

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

Operators

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