Pivot class

Constructors

Pivot()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited

Static Methods

isClosestAny(Offset offset) bool
isClosestHorizontal(Offset offset) bool
isClosestVertical(Offset offset) bool

Constants

bottomLeft → const Offset
Use this value to easily assign a bottom left corner pivot to your view or your bound.
const Offset(0, 1)
bottomRight → const Offset
Use this value to easily assign a bottom right corner pivot to your view or your bound.
const Offset(1, 1)
center → const Offset
Use this value to easily assign a center pivot to your view or your bound.
const Offset(0.5, 0.5)
closestAny → const Offset
Use this value if you want your view to snap to the closest side (Left/Right/Left/Right).
const Offset(12345, 12345)
closestHorizontal → const Offset
Use this value if you want your view to snap to the closest horizontal side (Left/Right).
const Offset(12345, 0)
closestVertical → const Offset
Use this value if you want your view to snap to the closest vertical side (Top/Bottom).
const Offset(0, 12345)
topLeft → const Offset
Use this value to easily assign a top left corner pivot to your view or your bound.
const Offset(0, 0)
topRight → const Offset
Use this value to easily assign a top right corner pivot to your view or your bound.
const Offset(1, 0)