PositionUnit class abstract
- Available extensions
Constructors
- PositionUnit.new()
-
const
- PositionUnit.calculated({required PositionUnit first, required PositionUnit second, required CalculationOperation operation})
-
constfactory
- PositionUnit.childSize([Object? key])
-
constfactory
- PositionUnit.constrained({required PositionUnit position, PositionUnit min, PositionUnit max})
-
constfactory
- PositionUnit.cross(PositionUnit position)
-
constfactory
- PositionUnit.fixed(double value)
-
constfactory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clamp(
{PositionUnit min = const _FixedPosition(double.negativeInfinity), PositionUnit max = const _FixedPosition(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 - Computes the actual position value for this unit.
-
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 *(
PositionUnit 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.
inherited
-
operator unary-(
) → PositionUnit -
Available on PositionUnit, provided by the PositionUnitExtension extension
Negates this position unit (equivalent to 0 - this).
Static Methods
-
lerp(
PositionUnit a, PositionUnit b, double t) → PositionUnit
Constants
- boxOffset → const PositionUnit
- contentOverflow → const PositionUnit
- contentSize → const PositionUnit
- contentUnderflow → const PositionUnit
- scrollOffset → const PositionUnit
- viewportEndBound → const PositionUnit
- viewportSize → const PositionUnit
- viewportStartBound → const PositionUnit
- zero → const PositionUnit