isConstant property

  1. @override
bool isConstant
override

Returns if this member is a constant. Constant members can be combined more easily without making the expression non-linear. This makes them easier to use with multiplication and division operators. Constant expression that have zero value may also eliminate other expressions from the solver when used with the multiplication operator.

Implementation

@override
bool get isConstant => true;