constY method

void constY(
  1. num y
)

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

Implementation

void constY(num y) {
  _y = constant(y);
}