createOffset method

Offset createOffset(
  1. double value
)

Gets the the given offset related to the current direction.

Implementation

Offset createOffset(double value) {
  return directionIsXAxis ? Offset(value, 0) : Offset(0, value);
}