ReferencePosition constructor
A simple wrapper for the x
& y
values of the
XL
's reference position as doubles between 0..1
.
Implementation
const ReferencePosition(this.x, this.y)
: assert(
x >= 0 && x <= 1 && y >= 0 && y <= 1,
'The reference position must be between or equal to zero and one',
);