Gets the the given offset related to the current direction.
Offset createOffset(double value) { return directionIsXAxis ? Offset(value, 0) : Offset(0, value); }