constX method

void constX(
  1. num x
)

Defines the Link.x-accessor as a constant function that always returns the specified value.

Implementation

void constX(num x) {
  _x = constant(x);
}