Gets the extent of this size on the given axis.
double axisSize(Axis axis) { return axis == Axis.vertical ? height : width; }