getConstantValue method

  1. @override
Interval getConstantValue()
override

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());