PositionViewportEndBound class
A position unit that represents the end boundary of the viewport.
This position unit calculates where the viewport ends in the content coordinate space by adding the content size and scroll offset. It's useful for positioning elements relative to the visible end of scrollable content.
- Implemented types
- Available extensions
Constructors
- PositionViewportEndBound()
-
Creates a viewport end bound position unit.
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clamp(
{PositionUnit min = const PositionFixed(double.negativeInfinity), PositionUnit max = const PositionFixed(double.infinity)}) → PositionUnit -
Available on PositionUnit, provided by the PositionUnitExtension extension
Constrains this position unit within the specified min and max bounds. -
computePosition(
{required ParentLayout parent, required ChildLayout child, required LayoutAxis direction}) → double -
Returns the position of the viewport's end bound relative to content.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
times(
double other) → PositionUnit -
Available on PositionUnit, provided by the PositionUnitExtension extension
Multiplies a position unit by a scalar. -
toCodeString(
) → String -
Converts the position unit to a code string representation.
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator *(
Object other) → PositionUnit -
Available on PositionUnit, provided by the PositionUnitExtension extension
Multiplies two position units. -
operator +(
PositionUnit other) → PositionUnit -
Available on PositionUnit, provided by the PositionUnitExtension extension
Adds two position units together. -
operator -(
PositionUnit other) → PositionUnit -
Available on PositionUnit, provided by the PositionUnitExtension extension
Subtracts one position unit from another. -
operator /(
PositionUnit other) → PositionUnit -
Available on PositionUnit, provided by the PositionUnitExtension extension
Divides one position unit by another. -
operator ==(
Object other) → bool -
The equality operator.
override
-
operator unary-(
) → PositionUnit -
Available on PositionUnit, provided by the PositionUnitExtension extension
Negates this position unit (equivalent to 0 - this).