visitObjectPropertyExpression method
dynamic
visitObjectPropertyExpression(
- Expression object,
- dynamic property, {
- bool computeAsPattern = false,
Implementation
visitObjectPropertyExpression(Expression object, dynamic property,
{bool computeAsPattern = false}) {
dynamic obj = getValueFromExpression(object);
if (_isNullish(obj)) {
throw InvalidPropertyException(
'${getCode(object)} is undefined. Check your syntax.');
}
return _getObjectPropertyValue(obj, property,
computeAsPattern: computeAsPattern);
}