ReferencePosition constructor

const ReferencePosition(
  1. double x,
  2. double y
)

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',
      );