Returns true, if this literal is a constant.
bool isConstant() => value is Literal ? value.isConstant() : false;