constValue method

void constValue(
  1. num value
)

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

Implementation

void constValue(num value) {
  this.value = constant(value);
}