axisOffset method

double axisOffset(
  1. Axis axis
)

Gets the component of this offset on axis.

Implementation

double axisOffset(Axis axis) {
  return axis == Axis.vertical ? dy : dx;
}