closestHorizontal constant
Offset
const closestHorizontal
Use this value if you want your view to snap to the closest horizontal side (Left/Right).
Implementation
static const Offset closestHorizontal = const Offset(12345, 0);