getConstantValue method
Returns the constant value of this literal.
Throws StateError if literal is not constant, check before usage with
isConstant()
.
Implementation
@override
Interval getConstantValue() => Interval(
(min as Literal).getConstantValue(), (max as Literal).getConstantValue());