A function that allows to calculate a position according to a provided size.
typedef PositionCalculator = Position Function(Size size);