AxisSize.fromSize({required Size size, required Axis direction}) : this._(_convert(size, direction));