computeConstantValue abstract method

DartObject? computeConstantValue()

Returns a representation of the value of this variable.

If the value had not previously been computed, it will be computed as a result of invoking this method.

Returns null if either this variable was not declared with the 'const' modifier or if the value of this variable could not be computed because of errors.

Implementation

DartObject? computeConstantValue();