factory MainAndCrossSize.fromSize(Axis direction, Size size) { return MainAndCrossSize.fromWH(direction, size.width, size.height); }