getConstantValue method

  1. @override
double getConstantValue()
override

Returns the constant value of this literal. Throws StateError if literal is not constant, check before usage with isConstant().

Implementation

@override
double getConstantValue() => value;