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