method getValueFrom


dynamic getValueFrom(Object obj)

Returns the current value of the path from the provided object.

Source

getValueFrom(Object obj) {
  if (!isValid) return null;
  for (var segment in _segments) {
    if (obj == null) return null;
    obj = _getObjectProperty(obj, segment);
  }
  return obj;
}